[asterisk-commits] rmudgett: branch 1.8 r323392 - /branches/1.8/main/dnsmgr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 14 12:21:32 CDT 2011


Author: rmudgett
Date: Tue Jun 14 12:21:24 2011
New Revision: 323392

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323392
Log:
Add more strict hostname checking to ast_dnsmgr_lookup().

Change suggested in review.

Review: https://reviewboard.asterisk.org/r/1240/

Modified:
    branches/1.8/main/dnsmgr.c

Modified: branches/1.8/main/dnsmgr.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/dnsmgr.c?view=diff&rev=323392&r1=323391&r2=323392
==============================================================================
--- branches/1.8/main/dnsmgr.c (original)
+++ branches/1.8/main/dnsmgr.c Tue Jun 14 12:21:24 2011
@@ -135,7 +135,7 @@
 	 * If it's actually an IP address and not a name, there's no
 	 * need for a managed lookup.
 	 */
-	if (ast_sockaddr_parse(result, name, 0)) {
+	if (ast_sockaddr_parse(result, name, PARSE_PORT_FORBID)) {
 		return 0;
 	}
 




More information about the asterisk-commits mailing list