[asterisk-commits] file: trunk r393833 - /trunk/res/res_sip/config_transport.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 8 14:53:16 CDT 2013


Author: file
Date: Mon Jul  8 14:53:13 2013
New Revision: 393833

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393833
Log:
Ensure that a valid bind host is specified for transports.

(closes issue ASTERISK-22017)
Reported by: Rusty Newton

Modified:
    trunk/res/res_sip/config_transport.c

Modified: trunk/res/res_sip/config_transport.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_sip/config_transport.c?view=diff&rev=393833&r1=393832&r2=393833
==============================================================================
--- trunk/res/res_sip/config_transport.c (original)
+++ trunk/res/res_sip/config_transport.c Mon Jul  8 14:53:13 2013
@@ -98,6 +98,11 @@
 
 	/* Once active a transport can not be reconfigured */
 	if (transport->state->transport || transport->state->factory) {
+		return -1;
+	}
+
+	if (transport->host.addr.sa_family != PJ_AF_INET && transport->host.addr.sa_family != PJ_AF_INET6) {
+		ast_log(LOG_ERROR, "Transport '%s' could not be started as binding not specified\n", ast_sorcery_object_get_id(obj));
 		return -1;
 	}
 




More information about the asterisk-commits mailing list