Module: sip-router
Branch: 3.2
Commit: ec8535487fd06e5de7b5efa218f764a6e850b42b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ec85354…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Nov 24 15:30:15 2011 +0100
textops(k): free only pkg body lumps for set_body()
- if set_body() is used in failure_route, it should not destroy
completely the lumps cloned in tm, just ignore them and free the ones
added in failure_route before execution of itself
- reported by Brandon Armstead, FS#181
(cherry picked from commit c22a3ec7366ad1a3cc0b5e8229fbabe2c179cca1)
---
modules_k/textops/textops.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/textops/textops.c b/modules_k/textops/textops.c
index f2f89bb..4ebd831 100644
--- a/modules_k/textops/textops.c
+++ b/modules_k/textops/textops.c
@@ -1254,7 +1254,7 @@ static int set_body_f(struct sip_msg* msg, char* p1, char* p2)
return -1;
}
- free_lump_list(msg->body_lumps);
+ del_nonshm_lump( &(msg->body_lumps) );
msg->body_lumps = NULL;
if (msg->content_length)