summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-05-15 22:01:48 +0000
committerJeremy Allison <jra@samba.org>2001-05-15 22:01:48 +0000
commit109851ae5c40fdbaa426d40c81bf75cd45d7d858 (patch)
treed97b6cdeee49d0ac97699068c44a2735c8cc554d /source3/nsswitch
parent199bb03916745ecf9ae514f011acff1d6ec63a10 (diff)
downloadsamba-109851ae5c40fdbaa426d40c81bf75cd45d7d858.tar.gz
samba-109851ae5c40fdbaa426d40c81bf75cd45d7d858.tar.bz2
samba-109851ae5c40fdbaa426d40c81bf75cd45d7d858.zip
Zero-fill struct hostent.
Jeremy. (This used to be commit 86557d633648f279e6ceda4da38801889ca4ed95)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wins.c2
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;