X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxnet.c;h=5cf70082595bb08867394f303771ccfdad7329f5;hb=b21e8ac60bac296a572a4b96fed3b09c07a98499;hp=f1ef98b03ff10079fb22c72500718979a81b34c9;hpb=6daf6faede46bd8aa3a39cbe59d34c987b2ea114;p=PuTTY.git 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; }