CVE-2023-0614 s4:dsdb: Use talloc_get_type_abort() more consistently
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 6 Feb 2023 20:29:51 +0000 (09:29 +1300)
committerJule Anger <janger@samba.org>
Mon, 20 Mar 2023 09:03:50 +0000 (10:03 +0100)
commit1b1f6dd488704bca529f6cc70761dd4972998b8f
treeaf4762437f4ae6d70c0ee13032000824dd7d8f88
parent88b5d9215c6f712ad1932604e2830edd111a5618
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