[svn-commits] branch 1.2 r34400 - /branches/1.2/channels/chan_iax2.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jun 15 20:37:06 MST 2006


Author: file
Date: Thu Jun 15 22:37:05 2006
New Revision: 34400

URL: http://svn.digium.com/view/asterisk?rev=34400&view=rev
Log:
Zero out a declared structure so as to not crash if it contains invalid data (reported by Qwell on #asterisk-dev)

Modified:
    branches/1.2/channels/chan_iax2.c

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



More information about the svn-commits mailing list