retry on all errors from acquire_creds

This commit is contained in:
fifthdegree 2022-06-10 16:21:12 -04:00 committed by David Fort
parent 8f7be42540
commit b5ba6d135c

View File

@ -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);