Skip to content

Commit

Permalink
sl: don't remove the lump added in the 'after' list of delete lump
Browse files Browse the repository at this point in the history
- they are destroyed together, making the operation useless

(cherry picked from commit 338b00c)
(cherry picked from commit 6b7bbc8)
  • Loading branch information
miconda committed Jan 15, 2015
1 parent 1ba3ac3 commit fceba94
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/sl/sl.c
Expand Up @@ -437,9 +437,8 @@ static int w_sl_forward_reply(sip_msg_t* msg, str* code, str* reason)
if(reason!=NULL) {
if(ldel!=NULL) {
remove_lump(msg, ldel);
}
if(ladd!=NULL) {
remove_lump(msg, ladd);
/* ladd is liked in the 'after' list inside ldel,
* destroyed together, no need for its own remove operation */
}
}
if(code!=NULL) {
Expand Down

0 comments on commit fceba94

Please sign in to comment.