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:
parent
bc1103e93b
commit
79738178ec
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user