Module: kamailio
Branch: master
Commit: 59f1451db54be608f1417075001d2f0aa5be8786
URL:
https://github.com/kamailio/kamailio/commit/59f1451db54be608f1417075001d2f0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-04-07T12:34:34+02:00
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
---
Modified: modules/textops/textops.c
---
Diff:
https://github.com/kamailio/kamailio/commit/59f1451db54be608f1417075001d2f0…
Patch:
https://github.com/kamailio/kamailio/commit/59f1451db54be608f1417075001d2f0…
---
diff --git a/modules/textops/textops.c b/modules/textops/textops.c
index a677cba..97f6980 100644
--- a/modules/textops/textops.c
+++ b/modules/textops/textops.c
@@ -2764,7 +2764,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;