Browse Source

core: kemi - removed redundant anchor operation

Daniel-Constantin Mierla 7 năm trước cách đây
mục cha
commit
7ed21aabfa
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/core/kemi.c

+ 0 - 1
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 */