1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:kdc: Use talloc_get_type_abort()

We subsequently dereference the result without performing a NULL check.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-06-16 15:02:35 +12:00 committed by Andrew Bartlett
parent ad1234d5ee
commit b1006c773b

View File

@ -684,7 +684,7 @@ static krb5_error_code samba_wdc_check_client_access(void *priv,
return ENOMEM;
}
kdc_entry = talloc_get_type(client->context, struct samba_kdc_entry);
kdc_entry = talloc_get_type_abort(client->context, struct samba_kdc_entry);
password_change = (kdc_request_get_server(r) && kdc_request_get_server(r)->flags.change_pw);
workstation = get_netbios_name(tmp_ctx,
kdc_request_get_req(r)->req_body.addresses);