Module: sip-router Branch: mgw/free_faked_req Commit: 4fa0ba937e5bbbff1dfd19193ff32537d22b5f20 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4fa0ba93...
Author: Matthew Williams mgwilliams@gmail.com Committer: Matthew Williams mgwilliams@gmail.com Date: Thu Aug 8 17:31:10 2013 -0700
tm: properly check for double free in free_faked_req
---
modules/tm/t_reply.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c index ce1301a..94c0927 100644 --- a/modules/tm/t_reply.c +++ b/modules/tm/t_reply.c @@ -975,7 +975,8 @@ void free_faked_req(struct sip_msg *faked_req, struct cell *t)
if (faked_req->path_vec.s) { pkg_free(faked_req->path_vec.s); - faked_req->path_vec.len=0; + faked_req->path_vec.s = 0; + faked_req->path_vec.len = 0; }
/* free all types of lump that were added in failure handlers */