mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
imap: Fixed auth preference not being honored when CAPABILITY not supported
If a user indicated they preferred to authenticate using a SASL mechanism, but SASL authentication wasn't supported by the server, curl would always fall back to clear text when CAPABILITY wasn't supported, even though the user didn't want to use this.
This commit is contained in:
parent
0c762f1c92
commit
7fd490732a
@ -917,7 +917,7 @@ static CURLcode imap_state_capability_resp(struct connectdata *conn,
|
||||
result = imap_perform_authentication(conn);
|
||||
}
|
||||
else
|
||||
result = imap_perform_login(conn);
|
||||
result = imap_perform_authentication(conn);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user