[svn-commits] trunk r34401 - in /trunk: ./ channels/chan_iax2.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jun 15 20:38:25 MST 2006


Author: file
Date: Thu Jun 15 22:38:24 2006
New Revision: 34401

URL: http://svn.digium.com/view/asterisk?rev=34401&view=rev
Log:
Merged revisions 34400 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r34400 | file | 2006-06-16 00:37:05 -0300 (Fri, 16 Jun 2006) | 2 lines

Zero out a declared structure so as to not crash if it contains invalid data (reported by Qwell on #asterisk-dev)

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_iax2.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?rev=34401&r1=34400&r2=34401&view=diff
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Thu Jun 15 22:38:24 2006
@@ -9514,6 +9514,7 @@
 	struct iax2_peer *p;
 	int res = AST_DEVICE_INVALID;
 
+	memset(&pds, 0, sizeof(pds));
 	parse_dial_string(tmp, &pds);
 	if (ast_strlen_zero(pds.peer))
 		return res;



More information about the svn-commits mailing list