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

s4:kdc: Free samba_kdc_seq context on failure to allocate memory

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-10 15:54:21 +12:00 committed by Andrew Bartlett
parent bc1103e93b
commit 79738178ec

View File

@ -2992,7 +2992,7 @@ static krb5_error_code samba_kdc_seq(krb5_context context,
if (!mem_ctx) {
ret = ENOMEM;
krb5_set_error_message(context, ret, "samba_kdc_seq: talloc_named() failed!");
return ret;
goto out;
}
while (priv->index < priv->count) {