[svn-commits] mmichelson: branch 10 r350680 - in /branches/10: ./ channels/sip/config_parser.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jan 13 14:31:40 CST 2012


Author: mmichelson
Date: Fri Jan 13 14:31:36 2012
New Revision: 350680

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=350680
Log:
Set port to a default sane value if a bogus one is provided when parsing hostnames.
........

Merged revisions 350679 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/channels/sip/config_parser.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/channels/sip/config_parser.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/sip/config_parser.c?view=diff&rev=350680&r1=350679&r2=350680
==============================================================================
--- branches/10/channels/sip/config_parser.c (original)
+++ branches/10/channels/sip/config_parser.c Fri Jan 13 14:31:36 2012
@@ -672,7 +672,9 @@
 			ast_log(LOG_NOTICE, "'%s' is not a valid port number on line %d of sip.conf. using default.\n", port, lineno);
 			port = NULL;
 		}
-	} else {
+	}
+
+	if (!port) {
 		if (*transport & SIP_TRANSPORT_TLS) {
 			*portnum = STANDARD_TLS_PORT;
 		} else {




More information about the svn-commits mailing list