[sr-dev] git:4.3:f52e1fdd: userblacklist: fixed copy-paste typo when evaluating table parameter

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 6 11:56:47 CEST 2016


Module: kamailio
Branch: 4.3
Commit: f52e1fddd1b412333176f7223ce7ae5b6ae22cd3
URL: https://github.com/kamailio/kamailio/commit/f52e1fddd1b412333176f7223ce7ae5b6ae22cd3

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-07-06T11:56:24+02:00

userblacklist: fixed copy-paste typo when evaluating table parameter

(cherry picked from commit 5d285e90b0f145410acd15a7abf96d3b339a31b5)
(cherry picked from commit 7d9423448708330f197021d23e94e1b2d13ab8b8)

---

Modified: modules/userblacklist/userblacklist.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f52e1fddd1b412333176f7223ce7ae5b6ae22cd3.diff
Patch: https://github.com/kamailio/kamailio/commit/f52e1fddd1b412333176f7223ce7ae5b6ae22cd3.patch

---

diff --git a/modules/userblacklist/userblacklist.c b/modules/userblacklist/userblacklist.c
index cac4279..2a1a448 100644
--- a/modules/userblacklist/userblacklist.c
+++ b/modules/userblacklist/userblacklist.c
@@ -248,9 +248,9 @@ static int check_user_list(sip_msg_t *msg, char* puser, char* pdomain,
 		}
 	}
 	/* table name */
-	if(pnumber != NULL) {
+	if(ptable != NULL) {
 		if(fixup_get_svalue(msg, (gparam_t*)ptable, &table)!=0) {
-			LM_ERR("cannot print number pseudo-variable\n");
+			LM_ERR("cannot print table pseudo-variable\n");
 			return -1;
 		}
 	}




More information about the sr-dev mailing list