Ver Fonte

userblacklist: fixed copy-paste typo when evaluating table parameter

Daniel-Constantin Mierla há 9 anos atrás
pai
commit
5d285e90b0
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      modules/userblacklist/userblacklist.c

+ 2 - 2
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;
 		}
 	}