[Pkg-voip-commits] r10142 - in /kamailio/trunk/debian/patches: series upstream/0023-modules-pipelimit-check-correctly-for-all-arguments-.patch

maniac-guest at alioth.debian.org maniac-guest at alioth.debian.org
Wed Apr 10 13:38:57 UTC 2013


Author: maniac-guest
Date: Wed Apr 10 13:38:57 2013
New Revision: 10142

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

Added:
    kamailio/trunk/debian/patches/upstream/0023-modules-pipelimit-check-correctly-for-all-arguments-.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=10142&op=diff
==============================================================================
--- kamailio/trunk/debian/patches/series (original)
+++ kamailio/trunk/debian/patches/series Wed Apr 10 13:38:57 2013
@@ -17,6 +17,7 @@
 upstream/0019-modules-outbound-changed-some-INFO-level-output-to-D.patch
 upstream/0021-modules-ndb_redis-b-f-restore-correctly-last-char-in.patch
 upstream/0022-modules-ndb_redis-b-f-redisc_exec-returns-false-if-r.patch
+upstream/0023-modules-pipelimit-check-correctly-for-all-arguments-.patch
 no_lib64_on_64_bits.patch
 no_INSTALL_file.patch
 fix_export.patch

Added: kamailio/trunk/debian/patches/upstream/0023-modules-pipelimit-check-correctly-for-all-arguments-.patch
URL: http://svn.debian.org/wsvn/pkg-voip/kamailio/trunk/debian/patches/upstream/0023-modules-pipelimit-check-correctly-for-all-arguments-.patch?rev=10142&op=file
==============================================================================
--- kamailio/trunk/debian/patches/upstream/0023-modules-pipelimit-check-correctly-for-all-arguments-.patch (added)
+++ kamailio/trunk/debian/patches/upstream/0023-modules-pipelimit-check-correctly-for-all-arguments-.patch Wed Apr 10 13:38:57 2013
@@ -1,0 +1,36 @@
+From 3b9347e41195587c323f5d6d643c1807a9905941 Mon Sep 17 00:00:00 2001
+From: Vicente Hernando <vhernando at systemonenoc.com>
+Date: Wed, 10 Apr 2013 13:55:57 +0200
+Subject: [PATCH] modules/pipelimit: check correctly for all arguments in
+ mi_set_pipe (cherry picked from commit
+ d17b02ed5014b4e32bd0060f32cabd750956779c)
+
+---
+ modules/pipelimit/pl_ht.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/modules/pipelimit/pl_ht.c b/modules/pipelimit/pl_ht.c
+index c144e7e..1146468 100644
+--- a/modules/pipelimit/pl_ht.c
++++ b/modules/pipelimit/pl_ht.c
+@@ -544,7 +544,7 @@ struct mi_root* mi_set_pipe(struct mi_root* cmd_tree, void* param)
+ 	pipeid = node->value;
+ 	
+ 	node = node->next;
+-	if ( !node->value.s || !node->value.len)
++	if ( !node || !node->value.s || !node->value.len)
+ 		goto error;
+ 	if (str_map_str(algo_names, &(node->value), (int*)&algo_id)) {
+ 		LM_ERR("unknown algorithm: '%.*s'\n", node->value.len, node->value.s);
+@@ -552,7 +552,7 @@ struct mi_root* mi_set_pipe(struct mi_root* cmd_tree, void* param)
+ 	}
+ 	
+ 	node = node->next;
+-	if ( !node->value.s || !node->value.len || strno2int(&node->value,&limit)<0)
++	if ( !node || !node->value.s || !node->value.len || strno2int(&node->value,&limit)<0)
+ 		goto error;
+ 
+ 	LM_DBG("set_pipe: %.*s:%d:%d\n", pipeid.len, pipeid.s, algo_id, limit);
+-- 
+1.7.10.4
+




More information about the Pkg-voip-commits mailing list