[sr-dev] git:master:59f1451d: textops: fixed reply code on no-match for search_hf() with flag f

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 7 12:35:52 CEST 2015


Module: kamailio
Branch: master
Commit: 59f1451db54be608f1417075001d2f0aa5be8786
URL: https://github.com/kamailio/kamailio/commit/59f1451db54be608f1417075001d2f0aa5be8786

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/59f1451db54be608f1417075001d2f0aa5be8786.diff
Patch: https://github.com/kamailio/kamailio/commit/59f1451db54be608f1417075001d2f0aa5be8786.patch

---

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;




More information about the sr-dev mailing list