Skip to content

Commit

Permalink
core: kemi - removed redundant anchor operation
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 8, 2017
1 parent c0bc386 commit 7ed21aa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/kemi.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 7ed21aa

Please sign in to comment.