1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s4:kdc: Use talloc_get_type_abort()

We dereference this pointer immediately after this call, so we should be
sure it is not NULL.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-05-17 15:05:44 +12:00 committed by Andrew Bartlett
parent 6ee5c80ea9
commit 7266924b3d

View File

@ -618,8 +618,8 @@ static krb5_error_code hdb_samba4_audit(krb5_context context,
default:
{
TALLOC_CTX *frame = talloc_stackframe();
struct samba_kdc_entry *p = talloc_get_type(entry->context,
struct samba_kdc_entry);
struct samba_kdc_entry *p = talloc_get_type_abort(entry->context,
struct samba_kdc_entry);
struct dom_sid *sid
= samdb_result_dom_sid(frame, p->msg, "objectSid");
const char *account_name