[asterisk-commits] russell: branch 1.2 r75440 - /branches/1.2/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 17 15:41:42 CDT 2007


Author: russell
Date: Tue Jul 17 15:41:41 2007
New Revision: 75440

URL: http://svn.digium.com/view/asterisk?view=rev&rev=75440
Log:
After parsing information elements in IAX frames, set the data length to zero,
so that code later on does not think it has data to copy.
(ASA-2007-015)

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?view=diff&rev=75440&r1=75439&r2=75440
==============================================================================
--- branches/1.2/channels/chan_iax2.c (original)
+++ branches/1.2/channels/chan_iax2.c Tue Jul 17 15:41:41 2007
@@ -6811,6 +6811,7 @@
 					return 1;
 				}
 				f.data = NULL;
+				f.datalen = 0;
 			} else
 				f.data = buf + sizeof(*fh);
 		} else {




More information about the asterisk-commits mailing list