X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/1b08e5d722504982bf871c6ea97a21a487c86f3e..ab0873ab80d0c927315329be0cbeb96bb4ace89a:/unix/uxnet.c diff --git a/unix/uxnet.c b/unix/uxnet.c index 3440d19e..82b413dc 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -203,6 +203,7 @@ SockAddr sk_namelookup(char *host, char **canonicalname) SockAddr sk_nonamelookup(char *host) { SockAddr ret = smalloc(sizeof(struct SockAddr_tag)); + ret->error = NULL; ret->family = AF_UNSPEC; strncpy(ret->hostname, host, lenof(ret->hostname)); ret->hostname[lenof(ret->hostname)-1] = '\0';