dns_lookup_host() needs to remove brackets and IPv6: prefix when receiving
authorgilles <gilles@openbsd.org>
Wed, 28 Oct 2015 07:28:13 +0000 (07:28 +0000)
committergilles <gilles@openbsd.org>
Wed, 28 Oct 2015 07:28:13 +0000 (07:28 +0000)
commita706cb8941ccec4b20eb4759b4bc6a2dd2f35b6c
tree1dd26bcf0419bbceb514ee93d3e0f22f88a256bc
parent934f8fd8d54f4e21ea56916bb6a3999ea9eb76e5
dns_lookup_host() needs to remove brackets and IPv6: prefix when receiving
a text representation otherwise getaddrinfo_async() will choke

ok eric@
usr.sbin/smtpd/dns.c