1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

librpc: Simplify ndr_size_dom_sid28()

Don't duplicate the calculation

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-08-31 17:35:42 +02:00 committed by Jeremy Allison
parent 2ae7ad97ab
commit 9d432f3c1a

View File

@ -132,8 +132,7 @@ size_t ndr_size_dom_sid28(const struct dom_sid *sid, int flags)
if (all_zero((const uint8_t *)sid, sizeof(struct dom_sid))) {
return 0;
}
return 8 + 4*sid->num_auths;
return ndr_size_dom_sid(sid, flags);
}
size_t ndr_size_dom_sid0(const struct dom_sid *sid, int flags)