summaryrefslogtreecommitdiff
path: root/main/dnsmgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/dnsmgr.c')
-rw-r--r--main/dnsmgr.c2
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;
}