krb5: clean up get_cred_kdc on send context failure

Fixes #1207
This commit is contained in:
Roland C. Dowdeswell
2026-05-27 16:58:44 +01:00
committed by Nico Williams
parent e3a59b65d3
commit 9a9da70626
+1 -1
View File
@@ -645,7 +645,7 @@ get_cred_kdc(krb5_context context,
krb5_sendto_ctx stctx;
ret = krb5_sendto_ctx_alloc(context, &stctx);
if (ret)
return ret;
goto out;
krb5_sendto_ctx_set_func(stctx, _krb5_kdc_retry, NULL);
if (kdc_hostname)