Explorar el Código

userblacklist: fixed copy-paste typo when evaluating table parameter

Daniel-Constantin Mierla hace 9 años
padre
commit
5d285e90b0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;
 		}
 	}