Ver código fonte

textops: remove_hf_match() returns true when a header is removed

Daniel-Constantin Mierla 3 anos atrás
pai
commit
70c3855188
1 arquivos alterados com 1 adições e 4 exclusões
  1. 1 4
      src/modules/textops/textops.c

+ 1 - 4
src/modules/textops/textops.c

@@ -2243,7 +2243,7 @@ static int ki_remove_hf_match(sip_msg_t* msg, str* hname, str *op, str *expr)
 	regex_t mre;
 	regmatch_t pmatch;
 	char c;
-	int ret = -1;
+	int ret = -2;
 
 	memset(&mre, 0, sizeof(regex_t));
 
@@ -2330,9 +2330,6 @@ static int ki_remove_hf_match(sip_msg_t* msg, str* hname, str *op, str *expr)
 			ret = 1;
 		}
 	}
-	if(ret==-1) {
-		ret = 2;
-	}
 
 done:
 	if(vop==4) {