Skip to content

Commit

Permalink
textops: remove_hf_match() returns true when a header is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Mar 11, 2022
1 parent 5c59e96 commit 70c3855
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/textops/textops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 70c3855

Please sign in to comment.