diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/wins.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c index 49edf3a88b..ac6d13a64f 100644 --- a/source3/nsswitch/wins.c +++ b/source3/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; |