From ac36829250fb8cf8347328cdfd980fd9362a1e33 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 7 Apr 2015 12:34:34 +0200 Subject: [PATCH] textops: fixed reply code on no-match for search_hf() with flag f - true instead of false was returned - reported and patch by Paolo on sr-users (cherry picked from commit 59f1451db54be608f1417075001d2f0aa5be8786) --- modules/textops/textops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/textops/textops.c b/modules/textops/textops.c index 50a6f079ac6..a945937b3a5 100644 --- a/modules/textops/textops.c +++ b/modules/textops/textops.c @@ -2779,7 +2779,7 @@ static int search_hf_f(struct sip_msg* msg, char* str_hf, char* re, char *flags) return 1; } else { if(flags!=NULL && *flags=='f') - return 1; + return -1; } } else { hfl = hf;