CVE-2023-0614 s4:dsdb: Use talloc_get_type_abort() more consistently
commit9c8bbbf3b57319ccf14df76d43096a453e1ebedb
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 6 Feb 2023 20:29:51 +0000 (7 09:29 +1300)
committerJule Anger <janger@samba.org>
Mon, 20 Mar 2023 09:03:44 +0000 (20 10:03 +0100)
treec770aafa839bdae6348fc3854d1e868dab944202
parent50a678be1a655dfc08d7bc0f74487b14e79cb0d3
CVE-2023-0614 s4:dsdb: Use talloc_get_type_abort() more consistently

It is better to explicitly abort than to dereference a NULL pointer or
try to read data cast to the wrong type.

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>
source4/dsdb/samdb/ldb_modules/acl_read.c
source4/dsdb/samdb/ldb_modules/acl_util.c
source4/dsdb/samdb/ldb_modules/linked_attributes.c
source4/dsdb/samdb/ldb_modules/password_hash.c