aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_sasl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/curl_sasl.c')
-rw-r--r--lib/curl_sasl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index dd2b6bef3..ad6b6090f 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -1455,8 +1455,7 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn,
}
else
#endif
- if((enabledmechs & SASL_MECH_XOAUTH2) && ((conn->oauth_bearer) ||
- (!conn->passwd))) {
+ if((enabledmechs & SASL_MECH_XOAUTH2) && conn->oauth_bearer) {
mech = SASL_MECH_STRING_XOAUTH2;
state1 = SASL_OAUTH2;
sasl->authused = SASL_MECH_XOAUTH2;