From abbd0f9195fe9b4feb29b86a04c88be001e2737a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 5 Feb 2010 15:55:14 +0100 Subject: s3: Make use of ZERO_STRUCTP --- source3/passdb/machine_sid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') 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; -- cgit