From 109851ae5c40fdbaa426d40c81bf75cd45d7d858 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 15 May 2001 22:01:48 +0000 Subject: Zero-fill struct hostent. Jeremy. (This used to be commit 86557d633648f279e6ceda4da38801889ca4ed95) --- source3/nsswitch/wins.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/nsswitch') 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; -- cgit