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

Author: Marius Zbihlei <[email protected]>
Committer: Marius Zbihlei <[email protected]>
Date:   Fri Jan 14 16:53:43 2011 +0200

modules_k/mi_datagram Fixed pkg_free of incorrect pointer on error path

Static analysis provided by clang and llvm

---

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

diff --git a/modules_k/mi_datagram/datagram_fnc.c 
b/modules_k/mi_datagram/datagram_fnc.c
index e26a55a..72cdff9 100644
--- a/modules_k/mi_datagram/datagram_fnc.c
+++ b/modules_k/mi_datagram/datagram_fnc.c
@@ -335,6 +335,7 @@ static void datagram_close_async(struct mi_root 
*mi_rpl,struct mi_handler *hdl,
 
        mi_create_dtgram_replysocket(reply_sock, p->domain, err);
 
+        memset(&dtgram, 0, sizeof(dtgram));
 
        if (mi_rpl!=0) {
                /*allocate the response datagram*/      


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to