(cherry picked from commit 37f06f031c4ce93bcf4494744282c17f7a2d157c)
... | ... |
@@ -3292,6 +3292,9 @@ inline static int dns_naptr_sip_resolve(struct dns_srv_handle* h, str* name, |
3292 | 3292 |
} |
3293 | 3293 |
try_lookup_naptr = 1; |
3294 | 3294 |
} |
3295 |
+ /* check if it's an ip address, dns_srv_sip_resolve will return the right failure */ |
|
3296 |
+ if (str2ip(name) || str2ip6(name)) |
|
3297 |
+ goto naptr_not_found; |
|
3295 | 3298 |
/* do naptr lookup */ |
3296 | 3299 |
if ((e=dns_get_entry(name, T_NAPTR))==0) |
3297 | 3300 |
goto naptr_not_found; |