diff options
Diffstat (limited to 'usr.bin/whois')
-rw-r--r-- | usr.bin/whois/whois.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 51ca8c8..c5bf9f4 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -279,6 +279,7 @@ whois(const char *query, const char *hostname, int flags) int i, s; size_t c, len; + s = -1; hostres = gethostinfo(hostname, 1); for (res = hostres; res; res = res->ai_next) { s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); |