From cc272a483882e815388fecdf0fa3ea801a03812f Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Thu, 22 Jan 2026 23:38:42 -0600 Subject: [PATCH] krb5: Try up to all kpasswdd IPs (fix #1304) --- lib/krb5/changepw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/krb5/changepw.c b/lib/krb5/changepw.c index cf4c631c0..d02484e98 100644 --- a/lib/krb5/changepw.c +++ b/lib/krb5/changepw.c @@ -678,8 +678,9 @@ change_password_loop (krb5_context context, ret = connect(sock, a->ai_addr, a->ai_addrlen); if (rk_IS_SOCKET_ERROR(ret)) { - rk_closesocket (sock); - goto out; + ret = rk_SOCK_ERRNO; + rk_closesocket(sock); + continue; } /*