]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add more strict hostname checking to ast_dnsmgr_lookup().
authorRichard Mudgett <rmudgett@digium.com>
Tue, 14 Jun 2011 17:21:24 +0000 (17:21 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 14 Jun 2011 17:21:24 +0000 (17:21 +0000)
Change suggested in review.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@323392 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/dnsmgr.c

index 8e856d3516fa510aee8b5faf0e585cafa3b553ee..8076b6f8054fa365d6327292393ea03ed9734a48 100644 (file)
@@ -135,7 +135,7 @@ int ast_dnsmgr_lookup(const char *name, struct ast_sockaddr *result, struct ast_
         * 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;
        }