]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winnet.c
New command-line option in Plink (and PuTTY, though it's less useful
[PuTTY.git] / windows / winnet.c
index 715c492f9a0d8411fd9276fb2ae76f9357ea4de1..47ac8b25929374c6504b585f200b6df66a590016 100644 (file)
@@ -356,6 +356,7 @@ SockAddr sk_namelookup(const char *host, char **canonicalname,
 #ifndef NO_IPV6
     ret->ai = ret->ais = NULL;
 #endif
+    ret->addresses = NULL;
     ret_family = AF_UNSPEC;
     *realhost = '\0';
 
@@ -456,6 +457,7 @@ SockAddr sk_nonamelookup(const char *host)
 #ifndef NO_IPV6
     ret->ai = ret->ais = NULL;
 #endif
+    ret->addresses = NULL;
     ret->naddresses = 0;
     strncpy(ret->hostname, host, lenof(ret->hostname));
     ret->hostname[lenof(ret->hostname)-1] = '\0';