[sr-dev] git:master: modules_k/userblacklist: Fixed alphanum checking if number had trailing non-digit char

Marius Zbihlei marius.zbihlei at 1and1.ro
Thu Oct 14 10:54:47 CEST 2010


Module: sip-router
Branch: master
Commit: d128ac966beeb2ddfd3332a20fdd93ae292d81b1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d128ac966beeb2ddfd3332a20fdd93ae292d81b1

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Thu Oct 14 11:53:11 2010 +0300

modules_k/userblacklist: Fixed alphanum checking if number had trailing non-digit char

---

 modules_k/userblacklist/userblacklist.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/userblacklist/userblacklist.c b/modules_k/userblacklist/userblacklist.c
index b70057e..4433064 100644
--- a/modules_k/userblacklist/userblacklist.c
+++ b/modules_k/userblacklist/userblacklist.c
@@ -289,7 +289,7 @@ static int check_user_list(struct sip_msg *msg, char* str1, char* str2, char* st
 
 	ptr = req_number;
 	/* Skip over non-digits.  */
-	while (strlen(ptr) > 0 && !isdigit(*ptr)) {
+	while (match_mode == 10 && strlen(ptr) > 0 && !isdigit(*ptr)) {
 		ptr = ptr + 1;
 	}
 




More information about the sr-dev mailing list