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:
@@ -201,7 +201,7 @@ ad_connect(krb5_context context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LDAP_OPT_X_SASL_GSS_CREDS
|
#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);
|
ret = ad_acquire_cred(context, realm, server);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user