From b5ba6d135c32626d67bc1fa4721125834a6ec8fc Mon Sep 17 00:00:00 2001 From: fifthdegree Date: Fri, 10 Jun 2022 16:21:12 -0400 Subject: [PATCH] retry on all errors from acquire_creds --- winpr/libwinpr/sspi/Kerberos/kerberos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/sspi/Kerberos/kerberos.c b/winpr/libwinpr/sspi/Kerberos/kerberos.c index a2fa373c2..159e16e42 100644 --- a/winpr/libwinpr/sspi/Kerberos/kerberos.c +++ b/winpr/libwinpr/sspi/Kerberos/kerberos.c @@ -341,7 +341,7 @@ static SECURITY_STATUS SEC_ENTRY kerberos_AcquireCredentialsHandleA( major = sspi_gss_acquire_cred_from(&minor, SSPI_GSS_C_NO_NAME, SSPI_GSS_C_INDEFINITE, &desired_mechs, cred_usage, &cred_store, &gss_creds, NULL, NULL); - if (major != SSPI_GSS_S_NO_CRED) + if (!SSPI_GSS_ERROR(major)) goto cleanup; gss_log_status_messages(major, minor);