[asterisk-commits] mjordan: branch 12 r402507 - /branches/12/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 5 15:16:30 CST 2013


Author: mjordan
Date: Tue Nov  5 15:16:28 2013
New Revision: 402507

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402507
Log:
chan_sip: Use AST_AF* defined constant when calling ast_get_ip

While the structure passed to ast_get_ip should be set memset to 0, thus
initializing the ss_family member to 0, explicitly setting it to AST_AF_UNSPEC
is more portable.

Modified:
    branches/12/channels/chan_sip.c

Modified: branches/12/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/channels/chan_sip.c?view=diff&rev=402507&r1=402506&r2=402507
==============================================================================
--- branches/12/channels/chan_sip.c (original)
+++ branches/12/channels/chan_sip.c Tue Nov  5 15:16:28 2013
@@ -30731,6 +30731,7 @@
 					srvlookup = v->value;
 				}
 			} else if (!strcasecmp(v->name, "defaultip")) {
+				peer->defaddr.ss.ss_family = AST_AF_UNSPEC;
 				if (!ast_strlen_zero(v->value) && ast_get_ip(&peer->defaddr, v->value)) {
 					sip_unref_peer(peer, "sip_unref_peer: from build_peer defaultip");
 					return NULL;




More information about the asterisk-commits mailing list