s3: Fix Coverity ID 976: BAD_SIZEOF
authorVolker Lendecke <vl@samba.org>
Sun, 27 Mar 2011 18:06:19 +0000 (20:06 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 27 Mar 2011 20:22:10 +0000 (22:22 +0200)
source3/passdb/pdb_wbc_sam.c

index 9af8e4f81b291f2da778f45ee45fbb19d0ccd08c..c1a7b75943a4f6e7fa0de1f72ecd2f9f40052df6 100644 (file)
@@ -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;