git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a431394
)
s3: Fix Coverity ID 976: BAD_SIZEOF
author
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 18:06:19 +0000
(20:06 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 20:22:10 +0000
(22:22 +0200)
source3/passdb/pdb_wbc_sam.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_wbc_sam.c
b/source3/passdb/pdb_wbc_sam.c
index 9af8e4f81b291f2da778f45ee45fbb19d0ccd08c..c1a7b75943a4f6e7fa0de1f72ecd2f9f40052df6 100644
(file)
--- 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;