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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 7 14:36:32 CDT 2010


Author: simon.perreault
Date: Wed Jul  7 14:36:28 2010
New Revision: 274681

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=274681
Log:
Set address family to AF_INET to restrict DNS lookup to A records

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=274681&r1=274680&r2=274681
==============================================================================
--- team/group/v6-new/channels/chan_iax2.c (original)
+++ team/group/v6-new/channels/chan_iax2.c Wed Jul  7 14:36:28 2010
@@ -12225,6 +12225,7 @@
 					/* Non-dynamic.  Make sure we become that way if we're not */
 					ast_sched_thread_del(sched, peer->expire);
 					ast_clear_flag64(peer, IAX_DYNAMIC);
+					peer_addr_tmp.ss.ss_family = AF_INET;
 					if (ast_dnsmgr_lookup(v->value, &peer_addr_tmp, &peer->dnsmgr, srvlookup ? "_iax._udp" : NULL))
 						return peer_unref(peer);
 					ast_sockaddr_to_sin(&peer_addr_tmp,




More information about the svn-commits mailing list