summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-05 15:55:14 +0100
committerVolker Lendecke <vl@samba.org>2010-02-05 21:11:17 +0100
commitabbd0f9195fe9b4feb29b86a04c88be001e2737a (patch)
tree5ad87650339099b793e9751e5f90d829b03c3f3b /source3
parent3ea602a7c3f71a5cc1b2f867d86d8baa24bfe661 (diff)
downloadsamba-abbd0f9195fe9b4feb29b86a04c88be001e2737a.tar.gz
samba-abbd0f9195fe9b4feb29b86a04c88be001e2737a.tar.bz2
samba-abbd0f9195fe9b4feb29b86a04c88be001e2737a.zip
s3: Make use of ZERO_STRUCTP
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/machine_sid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/machine_sid.c b/source3/passdb/machine_sid.c
index aee9acc993..d70e7c4dc4 100644
--- a/source3/passdb/machine_sid.c
+++ b/source3/passdb/machine_sid.c
@@ -61,7 +61,8 @@ static void generate_random_sid(DOM_SID *sid)
int i;
uchar raw_sid_data[12];
- memset((char *)sid, '\0', sizeof(*sid));
+ ZERO_STRUCTP(sid);
+
sid->sid_rev_num = 1;
sid->id_auth[5] = 5;
sid->num_auths = 0;