CVE-2023-0614 s4-dsdb: Add samdb_result_dom_sid_buf()
commite46739cb89763812c29b8e5180e55cb60cbfbca7
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 26 Feb 2023 23:19:08 +0000 (27 12:19 +1300)
committerJule Anger <janger@samba.org>
Mon, 20 Mar 2023 09:03:38 +0000 (20 10:03 +0100)
tree36cc573cb18a77f7e45a375bb4266caa64ae5c36
parent95be170f9978ed255f1b8cbcdf28de4475cdc96c
CVE-2023-0614 s4-dsdb: Add samdb_result_dom_sid_buf()

This function parses a SID from an ldb_message, similar to
samdb_result_dom_sid(), but does it without allocating anything.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15270

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
[abartlet@samba.org Adapted for simple conflicts due to
 56297449f9c2e94505a72a70a3a3c5990d00d37f trimming
 trailing whitespace]
source4/dsdb/common/util.c