Module: kamailio
Branch: master
Commit: de8ba3900d6fef42e99ca9568044c7aefa44a5ea
URL:
https://github.com/kamailio/kamailio/commit/de8ba3900d6fef42e99ca9568044c7a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-08T17:28:40+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
---
Modified: parser/parse_hname2.c
---
Diff:
https://github.com/kamailio/kamailio/commit/de8ba3900d6fef42e99ca9568044c7a…
Patch:
https://github.com/kamailio/kamailio/commit/de8ba3900d6fef42e99ca9568044c7a…
---
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);