[asterisk-commits] twilson: branch 1.8 r340715 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 13 01:52:16 CDT 2011


Author: twilson
Date: Thu Oct 13 01:52:12 2011
New Revision: 340715

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=340715
Log:
Initialize ast_sockaddr before calling ast_sockaddr_resolve

Avoid possible jump based on unitialized value

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=340715&r1=340714&r2=340715
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Thu Oct 13 01:52:12 2011
@@ -15345,7 +15345,7 @@
 {
 	char via[512];
 	char *c, *maddr;
-	struct ast_sockaddr tmp;
+	struct ast_sockaddr tmp = { { 0, } };
 	uint16_t port;
 
 	ast_copy_string(via, get_header(req, "Via"), sizeof(via));




More information about the asterisk-commits mailing list