1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

passdb: Use struct allocation

Give the compiler more info

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2020-01-27 17:00:59 +01:00 committed by Andreas Schneider
parent 1bb16ff4e2
commit 21359f4fc6

View File

@ -65,11 +65,11 @@ static void generate_random_sid(struct dom_sid *sid)
int i;
uchar raw_sid_data[12];
ZERO_STRUCTP(sid);
*sid = (struct dom_sid) {
.sid_rev_num = 1,
.id_auth[5] = 5,
};
sid->sid_rev_num = 1;
sid->id_auth[5] = 5;
sid->num_auths = 0;
sid->sub_auths[sid->num_auths++] = 21;
generate_random_buffer(raw_sid_data, 12);