Преглед на файлове

nathelper: remove redundant check for zero

Henning Westerholt преди 5 години
родител
ревизия
9ba1a6c851
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/modules/nathelper/nathelper.c

+ 1 - 1
src/modules/nathelper/nathelper.c

@@ -2581,7 +2581,7 @@ static int alias_to_uri(str *contact_header, str *alias_uri){
 			i=i+SALIAS_LEN;
 			host.s = &contact_header->s[i];
 			memchr_pointer = memchr(host.s , 126 /* ~ */,contact_header->len-i);
-				if(memchr_pointer == NULL || memchr_pointer == 0) {
+				if(memchr_pointer == NULL) {
 					LM_ERR("No alias parameter found for host\n");
 					return -1;
 				} else {