diff options
author | Richard Mudgett <rmudgett@digium.com> | 2011-06-14 17:22:26 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2011-06-14 17:22:26 +0000 |
commit | 9ff8844c7f812ce4e5151beb746c0ed9a93d6cb2 (patch) | |
tree | aa2067070f20632fd52f1044b0bfc5aa4b32efcc /main/dnsmgr.c | |
parent | abd7ef817eb96193486f61848313d2e267c2b503 (diff) |
Merged revisions 323392,323394 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r323392 | rmudgett | 2011-06-14 12:21:24 -0500 (Tue, 14 Jun 2011) | 6 lines
Add more strict hostname checking to ast_dnsmgr_lookup().
Change suggested in review.
Review: https://reviewboard.asterisk.org/r/1240/
........
r323394 | rmudgett | 2011-06-14 12:21:39 -0500 (Tue, 14 Jun 2011) | 2 lines
Made ast_sockaddr_split_hostport() port warning msgs more meaningful.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@323397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/dnsmgr.c')
-rw-r--r-- | main/dnsmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/dnsmgr.c b/main/dnsmgr.c index 9002ec87f..999bd92f4 100644 --- a/main/dnsmgr.c +++ b/main/dnsmgr.c @@ -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; } |