[asterisk-commits] simon.perreault: branch group/v6-new r274685 - /team/group/v6-new/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 7 14:50:21 CDT 2010


Author: simon.perreault
Date: Wed Jul  7 14:50:17 2010
New Revision: 274685

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=274685
Log:
Just set the address family instead of casting uninitialized garbage

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

Modified: team/group/v6-new/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_iax2.c?view=diff&rev=274685&r1=274684&r2=274685
==============================================================================
--- team/group/v6-new/channels/chan_iax2.c (original)
+++ team/group/v6-new/channels/chan_iax2.c Wed Jul  7 14:50:17 2010
@@ -4442,7 +4442,7 @@
 		struct ast_sockaddr sin_tmp;
 
 		cai->found = 0;
-		ast_sockaddr_from_sin(&sin_tmp, sin);
+		sin_tmp.ss.ss_family = AF_INET;
 		if (ast_get_ip_or_srv(&sin_tmp, peername, srvlookup ? "_iax._udp" : NULL)) {
 			ast_log(LOG_WARNING, "No such host: %s\n", peername);
 			return -1;




More information about the asterisk-commits mailing list