fixed resolving numerical addresses in host_create_from_dns()

This commit is contained in:
Martin Willi
2008-06-11 07:31:24 +00:00
parent 7d4bb52073
commit d35effa89b
+1 -1
View File
@@ -480,7 +480,7 @@ host_t *host_create_from_dns(char *string, int af, u_int16_t port)
}
this = host_create_empty();
this->address.sa_family = host.h_addrtype;
switch (af)
switch (this->address.sa_family)
{
case AF_INET:
memcpy(&this->address4.sin_addr.s_addr,