summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-05-03 02:24:01 +0000
committerJeremy Allison <jra@samba.org>2000-05-03 02:24:01 +0000
commit99352a098656ac9d3886d047ff273a6880990d2f (patch)
tree26f6ca93e045ff7e2d23ca0e18508f73d3c545a9 /source3/smbd
parentee42e492cef366b77c3c6fcf26e440105e89ffc8 (diff)
downloadsamba-99352a098656ac9d3886d047ff273a6880990d2f.tar.gz
samba-99352a098656ac9d3886d047ff273a6880990d2f.tar.bz2
samba-99352a098656ac9d3886d047ff273a6880990d2f.zip
Insure uninitialized memory read fixes.
Jeremy. (This used to be commit 577ddbfbec857dec3ade811f735ec6b183566435)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/password.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index cff47c0a94..989d3f045d 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -270,6 +270,8 @@ uint16 register_vuid(uid_t uid,gid_t gid, char *unix_name, char *requested_name,
}
}
+ memset(&vuser->dc, '\0', sizeof(vuser->dc));
+
return (uint16)((num_validated_users - 1) + VUID_OFFSET);
}