[sr-dev] git:3.3: modules_k/pua: Fixed double-free in pua

Peter Dunkley peter.dunkley at crocodile-rcs.com
Mon Aug 13 16:52:47 CEST 2012


Module: sip-router
Branch: 3.3
Commit: dd26ed0cc3233fcf64635a8d2ee27361352b711a
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dd26ed0cc3233fcf64635a8d2ee27361352b711a

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Mon Aug 13 15:48:18 2012 +0100

modules_k/pua: Fixed double-free in pua
(cherry picked from commit 5387288eac896a0710fb1c55cc4837e973e04946)

---

 modules_k/pua/send_subscribe.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules_k/pua/send_subscribe.c b/modules_k/pua/send_subscribe.c
index cd089e6..89a8141 100644
--- a/modules_k/pua/send_subscribe.c
+++ b/modules_k/pua/send_subscribe.c
@@ -623,6 +623,7 @@ faked_error:
 		presentity->record_route.len= record_route.len;
 		size+= record_route.len;
 		pkg_free(record_route.s);
+		record_route.s = NULL;
 	}
 
 	presentity->contact.s= (char*)presentity + size;




More information about the sr-dev mailing list