[svn-commits] simon.perreault: branch group/v6-new r273346 - /team/group/v6-new/channels/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 1 08:28:14 CDT 2010


Author: simon.perreault
Date: Thu Jul  1 08:28:10 2010
New Revision: 273346

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273346
Log:
Use ast_sockaddr_setnull() instead of memset().

Modified:
    team/group/v6-new/channels/chan_sip.c

Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=273346&r1=273345&r2=273346
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Thu Jul  1 08:28:10 2010
@@ -25347,7 +25347,7 @@
 					if (!found || !peer->host_dynamic) {
 						/* Initialize stuff if this is a new peer, or if it used to
 						 * not be dynamic before the reload. */
-						memset(&peer->addr, 0, sizeof(peer->addr));
+						ast_sockaddr_setnull(&peer->addr);
 					}
 					peer->host_dynamic = TRUE;
 				} else {




More information about the svn-commits mailing list