mirror of https://github.com/c-ares/c-ares.git
Fix ares_getaddrinfo() numerical address fast path with AF_UNSPEC (#469)
The conversion of numeric IPv4 addresses in fake_addrinfo() is broken when the family is AF_UNSPEC. The initial call to ares_inet_pton with AF_INET will succeed, but the subsequent call using AF_INET6 will fail. This results in the fake_addrinfo() fast path failing, and ares_getaddrinfo() making a query when none should be required. Resolve this by only attempting the call to ares_inet_pton with AF_INET6 if the initial call with AF_INET was unsuccessful. Fix By: Ridge Kennedy (@ridgek)pull/474/head
parent
810c2322f9
commit
5aa25946e7
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue