summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/nsswitch/wins.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/nsswitch/wins.c b/source/nsswitch/wins.c
index 49edf3a88b3..ac6d13a64f6 100644
--- a/source/nsswitch/wins.c
+++ b/source/nsswitch/wins.c
@@ -139,6 +139,8 @@ _nss_wins_gethostbyname_r(const char *name, struct hostent *he,
int i, count;
size_t namelen = strlen(name) + 1;
+ memset(he, '\0', sizeof(*he));
+
ip_list = lookup_backend(name, &count);
if (!ip_list) {
return NSS_STATUS_NOTFOUND;