diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-03 02:24:01 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-03 02:24:01 +0000 |
commit | 99352a098656ac9d3886d047ff273a6880990d2f (patch) | |
tree | 26f6ca93e045ff7e2d23ca0e18508f73d3c545a9 /source3/smbd/password.c | |
parent | ee42e492cef366b77c3c6fcf26e440105e89ffc8 (diff) | |
download | samba-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/password.c')
-rw-r--r-- | source3/smbd/password.c | 2 |
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); } |