fix bad 'if'

This commit is contained in:
Bob Halley 1999-08-17 02:11:04 +00:00
parent 3d3144b970
commit af6d447524

View file

@ -113,9 +113,9 @@ get_address(char *hostname, unsigned int port, isc_sockaddr_t *sockaddr) {
if (have_ipv6 && inet_pton(AF_INET6, hostname, &in6) == 1)
isc_sockaddr_fromin6(sockaddr, &in6, port);
if (inet_pton(AF_INET, hostname, &in4) == 1) {
else if (inet_pton(AF_INET, hostname, &in4) == 1)
isc_sockaddr_fromin(sockaddr, &in4, port);
} else {
else {
he = gethostbyname(hostname);
if (he == NULL)
fatal("gethostbyname() failed, h_errno = %d",