kdc: correct logic error in altsecid_gss_preauth_authorizer

check for the absence, not presence, of a GSS credential before acquiring one
This commit is contained in:
Luke Howard
2021-08-31 11:06:32 +00:00
parent 01ef38b743
commit 971648b71e

View File

@@ -201,7 +201,7 @@ ad_connect(krb5_context context,
}
#ifdef LDAP_OPT_X_SASL_GSS_CREDS
if (server->gss_cred != GSS_C_NO_CREDENTIAL) {
if (server->gss_cred == GSS_C_NO_CREDENTIAL) {
ret = ad_acquire_cred(context, realm, server);
if (ret)
goto out;