mirror of
https://github.com/samba-team/samba.git
synced 2025-08-31 22:02:58 +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:
committed by
Andrew Bartlett
parent
bc1103e93b
commit
79738178ec
@ -2992,7 +2992,7 @@ static krb5_error_code samba_kdc_seq(krb5_context context,
|
|||||||
if (!mem_ctx) {
|
if (!mem_ctx) {
|
||||||
ret = ENOMEM;
|
ret = ENOMEM;
|
||||||
krb5_set_error_message(context, ret, "samba_kdc_seq: talloc_named() failed!");
|
krb5_set_error_message(context, ret, "samba_kdc_seq: talloc_named() failed!");
|
||||||
return ret;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (priv->index < priv->count) {
|
while (priv->index < priv->count) {
|
||||||
|
Reference in New Issue
Block a user