]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:kdc: Check result of samdb_result_dom_sid()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 10 Aug 2023 02:46:34 +0000 (14:46 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 04:57:34 +0000 (04:57 +0000)
commit7cfddcbf3f02c8f2f18c527aba06cacdf6e499b0
treee85d4d9bf30f5626255103f67da115bd1a0576b2
parentf34645b8f8ce55d3da0c5c0993970156c9441265
s4:kdc: Check result of samdb_result_dom_sid()

We must not pass a NULL pointer into dom_sid_split_rid().

While we’re at it, switch to using samdb_result_dom_sid_buf(), which
doesn’t require a heap allocation.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c