[sr-dev] git:master:2aa013d5: textopsx: use safer function to parse header name in short buffer

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 2 13:31:45 CEST 2015


Module: kamailio
Branch: master
Commit: 2aa013d5fb992be98fc1ec90abdf0d67625ab724
URL: https://github.com/kamailio/kamailio/commit/2aa013d5fb992be98fc1ec90abdf0d67625ab724

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

textopsx: use safer function to parse header name in short buffer

---

Modified: modules/textopsx/textopsx.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2aa013d5fb992be98fc1ec90abdf0d67625ab724.diff
Patch: https://github.com/kamailio/kamailio/commit/2aa013d5fb992be98fc1ec90abdf0d67625ab724.patch

---

diff --git a/modules/textopsx/textopsx.c b/modules/textopsx/textopsx.c
index 6e21242..ba49aee 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((*h)->hname.s, (*h)->hname.s+(*h)->hname.len+3, &hdr);
+	parse_hname2_short((*h)->hname.s, (*h)->hname.s+(*h)->hname.len, &hdr);
 	*hname = savec;
 
 	if (hdr.type == HDR_ERROR_T) goto err;




More information about the sr-dev mailing list