If getaddrinfo() succeeds, then don't try look ups with other flags, even
authorguenther <guenther@openbsd.org>
Thu, 8 Oct 2015 20:13:45 +0000 (20:13 +0000)
committerguenther <guenther@openbsd.org>
Thu, 8 Oct 2015 20:13:45 +0000 (20:13 +0000)
commite3007dfe8b6f9c414674ca596b22b52af74051d4
tree1bc789ee827c554cf0bbc71eb0c328ea40a6de18
parentdd845b5bee5f96dcbfdad93982cd3300670099a9
If getaddrinfo() succeeds, then don't try look ups with other flags, even
if the connect()s failed.  In concert with some resolver fixes in libc,
this lets ntpd be tame()ed

problem isolated by theo, who had fun untangling the libc and libtls
behaviors to place blame for not being able to tame ntpd

ok beck@ deraadt@ jsing@
lib/libtls/tls_client.c