[Pkg-voip-commits] r9514 - in /kamailio/trunk/debian/patches: series upstream/ upstream/0001-Proper-parsing-for-PVs.patch

maniac-guest at alioth.debian.org maniac-guest at alioth.debian.org
Fri Feb 17 08:42:08 UTC 2012


Author: maniac-guest
Date: Fri Feb 17 08:42:08 2012
New Revision: 9514

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=9514
Log:
fix from git upstream

Added:
    kamailio/trunk/debian/patches/upstream/
    kamailio/trunk/debian/patches/upstream/0001-Proper-parsing-for-PVs.patch
Modified:
    kamailio/trunk/debian/patches/series

Modified: kamailio/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/kamailio/trunk/debian/patches/series?rev=9514&op=diff
==============================================================================
--- kamailio/trunk/debian/patches/series (original)
+++ kamailio/trunk/debian/patches/series Fri Feb 17 08:42:08 2012
@@ -1,1 +1,2 @@
+upstream/0001-Proper-parsing-for-PVs.patch
 no_lib64_on_64_bits.patch

Added: kamailio/trunk/debian/patches/upstream/0001-Proper-parsing-for-PVs.patch
URL: http://svn.debian.org/wsvn/pkg-voip/kamailio/trunk/debian/patches/upstream/0001-Proper-parsing-for-PVs.patch?rev=9514&op=file
==============================================================================
--- kamailio/trunk/debian/patches/upstream/0001-Proper-parsing-for-PVs.patch (added)
+++ kamailio/trunk/debian/patches/upstream/0001-Proper-parsing-for-PVs.patch Fri Feb 17 08:42:08 2012
@@ -1,0 +1,44 @@
+From 5fc59c44a6dbc97049a985b5b2f7280510b293b0 Mon Sep 17 00:00:00 2001
+From: Ovidiu Sas <osas at voipembedded.com>
+Date: Tue, 7 Feb 2012 19:12:36 -0500
+Subject: [PATCH] Proper parsing for PVs
+ Closes FS#202
+  - sr.pv.get fails for retrieving index header variable in Lua
+ (cherry picked from commit 8b9a98e8a8205b2214bf3503afea8aece20e2396)
+
+---
+ pvapi.c |    4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/pvapi.c b/pvapi.c
+index 940f017..d1ebfe6 100644
+--- a/pvapi.c
++++ b/pvapi.c
+@@ -125,7 +125,7 @@ int pv_locate_name(str *in)
+ 	{
+ 		/* name with parenthesis: $(...) */
+ 		pcount = 1;
+-		for(i=1; i<in->len; i++)
++		for(i=2; i<in->len; i++)
+ 		{
+ 			if(in->s[i]==PV_LNBRACKET)
+ 				pcount++;
+@@ -135,6 +135,7 @@ int pv_locate_name(str *in)
+ 				return i+1;
+ 		}
+ 		/* non-closing name parenthesis */
++		LM_ERR("non-closing name parenthesis [%.*s]\n",in->len,in->s);
+ 		return -1;
+ 	}
+ 
+@@ -167,6 +168,7 @@ int pv_locate_name(str *in)
+ 			return i+1;
+ 	}
+ 	/* non-closing inner-name parenthesis */
++	LM_ERR("non-closing inner-name parenthesis [%.*s]\n",in->len,in->s);
+ 	return -1;
+ }
+ 
+-- 
+1.7.4.1
+




More information about the Pkg-voip-commits mailing list