[asterisk-commits] bbryant: trunk r301858 - in /trunk: ./ channels/chan_multicast_rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 14 14:18:31 CST 2011


Author: bbryant
Date: Fri Jan 14 14:18:26 2011
New Revision: 301858

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=301858
Log:
Merged revisions 301851 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r301851 | bbryant | 2011-01-14 15:11:55 -0500 (Fri, 14 Jan 2011) | 6 lines
  
  Changing previous revisions 301845/301847 to use ast_sockaddr_setnull() instead
  of setting the field manually to avoid uninitialized data.
  
  Review: https://reviewboard.asterisk.org/r/1076/
........

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

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

Modified: trunk/channels/chan_multicast_rtp.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_multicast_rtp.c?view=diff&rev=301858&r1=301857&r2=301858
==============================================================================
--- trunk/channels/chan_multicast_rtp.c (original)
+++ trunk/channels/chan_multicast_rtp.c Fri Jan 14 14:18:26 2011
@@ -111,10 +111,12 @@
 {
 	char *tmp = ast_strdupa(data), *multicast_type = tmp, *destination, *control;
 	struct ast_rtp_instance *instance;
-	struct ast_sockaddr control_address = { .len = 0 };
+	struct ast_sockaddr control_address;
 	struct ast_sockaddr destination_address;
 	struct ast_channel *chan;
 	format_t fmt = ast_best_codec(format);
+
+	ast_sockaddr_setnull(&control_address);
 
 	/* If no type was given we can't do anything */
 	if (ast_strlen_zero(multicast_type)) {




More information about the asterisk-commits mailing list