diff options
author | Volker Lendecke <vl@samba.org> | 2010-02-05 15:55:14 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-02-05 21:11:17 +0100 |
commit | abbd0f9195fe9b4feb29b86a04c88be001e2737a (patch) | |
tree | 5ad87650339099b793e9751e5f90d829b03c3f3b /source3 | |
parent | 3ea602a7c3f71a5cc1b2f867d86d8baa24bfe661 (diff) | |
download | samba-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.c | 3 |
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; |