X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/2a6848cc351da3e7d43f476cbe0b9f3e64df4494..e14d27a1c47025c81e1fc62a51b0c355ec7f4957:/unix/uxnet.c diff --git a/unix/uxnet.c b/unix/uxnet.c index f1ef98b0..5cf70082 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -209,6 +209,9 @@ SockAddr sk_nonamelookup(const char *host) ret->family = AF_UNSPEC; strncpy(ret->hostname, host, lenof(ret->hostname)); ret->hostname[lenof(ret->hostname)-1] = '\0'; +#ifndef NO_IPV6 + ret->ai = NULL; +#endif return ret; }