From 7cb0f95bf28c24c45955d6df52f505019341ef31 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Nov 2010 14:26:06 +1100 Subject: [PATCH] s4-auth: fixed infinite loop in krb5 auth we were continually trying the first address returned, instead of moving to the next address Autobuild-User: Andrew Tridgell Autobuild-Date: Sun Nov 14 04:11:28 UTC 2010 on sn-devel-104 --- source4/auth/kerberos/krb5_init_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/auth/kerberos/krb5_init_context.c b/source4/auth/kerberos/krb5_init_context.c index ebe19e6b258..78f3e1fca7d 100644 --- a/source4/auth/kerberos/krb5_init_context.c +++ b/source4/auth/kerberos/krb5_init_context.c @@ -238,7 +238,7 @@ krb5_error_code smb_krb5_send_and_recv_func(krb5_context context, return ret; } - for (a = ai; a; a = ai->ai_next) { + for (a = ai; a; a = a->ai_next) { struct socket_address *remote_addr; smb_krb5 = talloc(tmp_ctx, struct smb_krb5_socket); if (!smb_krb5) { -- 2.34.1