summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 20:06:19 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 22:22:10 +0200
commitc07be5f74769d5a3fe450e86ca7e56e9738a3bf6 (patch)
treeaf2c4f5c69285c6a4cd84e25385f78c60f1517a8
parenta431394ce37a3f647953969c85aac4415184a532 (diff)
downloadsamba-c07be5f74769d5a3fe450e86ca7e56e9738a3bf6.tar.gz
samba-c07be5f74769d5a3fe450e86ca7e56e9738a3bf6.tar.bz2
samba-c07be5f74769d5a3fe450e86ca7e56e9738a3bf6.zip
s3: Fix Coverity ID 976: BAD_SIZEOF
-rw-r--r--source3/passdb/pdb_wbc_sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_wbc_sam.c b/source3/passdb/pdb_wbc_sam.c
index 9af8e4f81b..c1a7b75943 100644
--- a/source3/passdb/pdb_wbc_sam.c
+++ b/source3/passdb/pdb_wbc_sam.c
@@ -50,7 +50,7 @@ static NTSTATUS _pdb_wbc_sam_getsampw(struct pdb_methods *methods,
if (pwd == NULL)
return NT_STATUS_NO_SUCH_USER;
- memset(user, 0, sizeof(user));
+ ZERO_STRUCTP(user);
/* Can we really get away with this little of information */
user->methods = methods;