tls: getaddrinfo() refactor
tls: getaddrinfo() refactor

Author: guenther <guenther>
Date:   Thu Oct 8 20:13:45 2015 +0000

    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@

markokr/libusual,markokr/libusual,markokr/libusual,ifduyue/libusual,ifduyue/libusual,ifduyue/libusual,ifduyue/libusual,markokr/libusual