[asterisk-commits] russell: branch 10 r359559 - in /branches/10: ./ channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 14 19:53:27 CDT 2012
Author: russell
Date: Wed Mar 14 19:53:23 2012
New Revision: 359559
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359559
Log:
chan_iax2: Fix use of uninitialized sockaddr_in in try_transfer().
Initialize a struct sockaddr_in in try_transfer() so that the code isn't
(potentially) trying to read from it while uninitialized.
........
Merged revisions 359558 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/channels/chan_iax2.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_iax2.c?view=diff&rev=359559&r1=359558&r2=359559
==============================================================================
--- branches/10/channels/chan_iax2.c (original)
+++ branches/10/channels/chan_iax2.c Wed Mar 14 19:53:23 2012
@@ -8398,9 +8398,8 @@
int newcall = 0;
char newip[256];
struct iax_ie_data ied;
- struct sockaddr_in new;
-
-
+ struct sockaddr_in new = { 0, };
+
memset(&ied, 0, sizeof(ied));
if (ies->apparent_addr)
memmove(&new, ies->apparent_addr, sizeof(new));
More information about the asterisk-commits
mailing list