[sr-dev] git:master:7ed21aab: core: kemi - removed redundant anchor operation

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 8 10:54:18 CET 2017


Module: kamailio
Branch: master
Commit: 7ed21aabfab384ae3ea8c2e683d62256cb3f0713
URL: https://github.com/kamailio/kamailio/commit/7ed21aabfab384ae3ea8c2e683d62256cb3f0713

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-08T10:53:18+01:00

core: kemi - removed redundant anchor operation

---

Modified: src/core/kemi.c

---

Diff:  https://github.com/kamailio/kamailio/commit/7ed21aabfab384ae3ea8c2e683d62256cb3f0713.diff
Patch: https://github.com/kamailio/kamailio/commit/7ed21aabfab384ae3ea8c2e683d62256cb3f0713.patch

---

diff --git a/src/core/kemi.c b/src/core/kemi.c
index 3e83c9b498..55630c28f5 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -1139,7 +1139,6 @@ static int sr_kemi_hdr_insert_before(sip_msg_t *msg, str *txt, str *hname)
 		return -1;
 	}
 	memcpy(hdr, txt->s, txt->len);
-	anchor = anchor_lump(msg, hf->name.s + hf->len - msg->buf, 0, 0);
 	if(hf==0) { /* before first header */
 		anchor = anchor_lump(msg, msg->headers->name.s - msg->buf, 0, 0);
 	} else { /* before hf */




More information about the sr-dev mailing list