[sr-dev] git:4.3:637e7274: textopsx: include : in the value to be parsed as header name inside fixup_hname_param()

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 15 13:13:34 CEST 2015


Module: kamailio
Branch: 4.3
Commit: 637e727484affa52489ff6d7bf2fe06fd6bb1085
URL: https://github.com/kamailio/kamailio/commit/637e727484affa52489ff6d7bf2fe06fd6bb1085

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-09-15T13:13:10+02:00

textopsx: include : in the value to be parsed as header name inside fixup_hname_param()

- reported by Björn Bylander

(cherry picked from commit 5f301c9e9b3d4b67a11aeaab45c21fd8d8929695)

---

Modified: modules/textopsx/textopsx.c

---

Diff:  https://github.com/kamailio/kamailio/commit/637e727484affa52489ff6d7bf2fe06fd6bb1085.diff
Patch: https://github.com/kamailio/kamailio/commit/637e727484affa52489ff6d7bf2fe06fd6bb1085.patch

---

diff --git a/modules/textopsx/textopsx.c b/modules/textopsx/textopsx.c
index ba49aee..b170eb8 100644
--- a/modules/textopsx/textopsx.c
+++ b/modules/textopsx/textopsx.c
@@ -544,7 +544,7 @@ static int fixup_hname_param(char *hname, struct hname_data** h) {
 	(*h)->hname.len = hname - (*h)->hname.s;
 	savec = *hname;
 	*hname = ':';
-	parse_hname2_short((*h)->hname.s, (*h)->hname.s+(*h)->hname.len, &hdr);
+	parse_hname2_short((*h)->hname.s, (*h)->hname.s+(*h)->hname.len+1, &hdr);
 	*hname = savec;
 
 	if (hdr.type == HDR_ERROR_T) goto err;




More information about the sr-dev mailing list