Add more strict hostname checking to ast_dnsmgr_lookup().

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
This commit is contained in:
Richard Mudgett
2011-06-14 17:21:24 +00:00
parent f9e5239e8a
commit 2b2aa6ba3e

View 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;
}