瀏覽代碼

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

Daniel-Constantin Mierla 3 年之前
父節點
當前提交
70c3855188
共有 1 個文件被更改,包括 1 次插入4 次删除
  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;
 	regex_t mre;
 	regmatch_t pmatch;
 	regmatch_t pmatch;
 	char c;
 	char c;
-	int ret = -1;
+	int ret = -2;
 
 
 	memset(&mre, 0, sizeof(regex_t));
 	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;
 			ret = 1;
 		}
 		}
 	}
 	}
-	if(ret==-1) {
-		ret = 2;
-	}
 
 
 done:
 done:
 	if(vop==4) {
 	if(vop==4) {