Module: kamailio
Branch: master
Commit: 4dca6d5d79ecea23a202727d1a9637dad15ef174
URL:
https://github.com/kamailio/kamailio/commit/4dca6d5d79ecea23a202727d1a9637d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-08T08:58:20+01:00
core: kemi - break when matching the header name
---
Modified: src/core/kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4dca6d5d79ecea23a202727d1a9637d…
Patch:
https://github.com/kamailio/kamailio/commit/4dca6d5d79ecea23a202727d1a9637d…
---
diff --git a/src/core/kemi.c b/src/core/kemi.c
index de07f058f2..3e83c9b498 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -938,6 +938,7 @@ static int sr_kemi_hdr_append_after(sip_msg_t *msg, str *txt, str
*hname)
if (cmp_hdrname_str(&hf->name, &hfm.name)!=0)
continue;
}
+ break;
}
hdr = (char*)pkg_malloc(txt->len);
@@ -1129,9 +1130,9 @@ static int sr_kemi_hdr_insert_before(sip_msg_t *msg, str *txt, str
*hname)
if (cmp_hdrname_str(&hf->name, &hfm.name)!=0)
continue;
}
+ break;
}
- hf = msg->headers;
hdr = (char*)pkg_malloc(txt->len);
if(hdr==NULL) {
LM_ERR("no pkg memory left\n");