Module: kamailio
Branch: master
Commit: baf90dba5c12158386e501e73daa266321d9de38
URL:
https://github.com/kamailio/kamailio/commit/baf90dba5c12158386e501e73daa266…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-02T13:29:43+02:00
core: select framework - use safer function to parse header name in short buffer
---
Modified: select_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/baf90dba5c12158386e501e73daa266…
Patch:
https://github.com/kamailio/kamailio/commit/baf90dba5c12158386e501e73daa266…
---
diff --git a/select_core.c b/select_core.c
index d16f59d..a6e6901 100644
--- a/select_core.c
+++ b/select_core.c
@@ -619,7 +619,7 @@ int select_anyheader(str* res, select_t* s, struct sip_msg* msg)
/* if header name is parseable, parse it and set SEL_PARAM_DIV */
c=s->params[2].v.s.s[s->params[2].v.s.len];
s->params[2].v.s.s[s->params[2].v.s.len]=':';
- if
(parse_hname2(s->params[2].v.s.s,s->params[2].v.s.s+(s->params[2].v.s.len<3?4:s->params[2].v.s.len+1),
+ if
(parse_hname2_short(s->params[2].v.s.s,s->params[2].v.s.s+(s->params[2].v.s.len<3?4:s->params[2].v.s.len+1),
&hdr)==0) {
LM_ERR("fixup_call:parse error\n");
return -1;