summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;