Module: kamailio
Branch: 4.2
Commit: 6b7bbc8e58eae9b43b47efb270c20bb3d93ec2f0
URL:
https://github.com/kamailio/kamailio/commit/6b7bbc8e58eae9b43b47efb270c20bb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-01-15T20:14:53+01:00
sl: don't remove the lump added in the 'after' list of delete lump
- they are destroyed together, making the operation useless
(cherry picked from commit 338b00c0f2d38694cffe3536e7eeed0e0d5372dd)
---
Modified: modules/sl/sl.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6b7bbc8e58eae9b43b47efb270c20bb…
Patch:
https://github.com/kamailio/kamailio/commit/6b7bbc8e58eae9b43b47efb270c20bb…
---
diff --git a/modules/sl/sl.c b/modules/sl/sl.c
index 3a8cea2..5f3febb 100644
--- a/modules/sl/sl.c
+++ b/modules/sl/sl.c
@@ -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) {