Module: kamailio
Branch: 4.3
Commit: 262d3574790ea3a10c82cb8bc0e4a65429f25540
URL:
https://github.com/kamailio/kamailio/commit/262d3574790ea3a10c82cb8bc0e4a65…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-08T17:40:31+02:00
parser: fix start of search for long header names
- in parse_hname2_short(), used only for mod fixups, in the case header
name given as function param was greater than 250 chars
(cherry picked from commit de8ba3900d6fef42e99ca9568044c7aefa44a5ea)
---
Modified: parser/parse_hname2.c
---
Diff:
https://github.com/kamailio/kamailio/commit/262d3574790ea3a10c82cb8bc0e4a65…
Patch:
https://github.com/kamailio/kamailio/commit/262d3574790ea3a10c82cb8bc0e4a65…
---
diff --git a/parser/parse_hname2.c b/parser/parse_hname2.c
index e4188a0..ff273d0 100644
--- a/parser/parse_hname2.c
+++ b/parser/parse_hname2.c
@@ -270,7 +270,7 @@ char* parse_hname2_short(char* const begin, const char* const end,
struct hdr_fi
char *p;
if(end-begin>=HBUF_MAX_SIZE-4) {
- p = q_memchr(p, ':', end - begin);
+ p = q_memchr(begin, ':', end - begin);
if(p && p-4> begin) {
/* header name termination char found and enough space in buffer after it */
return parse_hname2(begin, end, hdr);