Module: sip-router
Branch: master
Commit: c22a3ec7366ad1a3cc0b5e8229fbabe2c179cca1
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c22a3ec…
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
---
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 4fabd22..755b4be 100644
--- a/modules_k/textops/textops.c
+++ b/modules_k/textops/textops.c
@@ -1259,7 +1259,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)