mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
pop3: Fixed auth preference not being honored when CAPA not supported
If a user indicated they preferred to authenticate using APOP or a SASL
mechanism, but neither were supported by the server, curl would always
fall back to clear text when CAPA wasn't supported, even though the
user didn't want to use this.
This also fixes the auto build failure caused by commit 6f2d5f0562
.
This commit is contained in:
parent
15bf9389ce
commit
0c762f1c92
@ -780,8 +780,12 @@ static CURLcode pop3_state_capa_resp(struct connectdata *conn, int pop3code,
|
|||||||
else
|
else
|
||||||
result = pop3_perform_authentication(conn);
|
result = pop3_perform_authentication(conn);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
result = pop3_perform_user(conn);
|
/* Clear text is supported when CAPA isn't recognised */
|
||||||
|
pop3c->authtypes |= POP3_TYPE_CLEARTEXT;
|
||||||
|
|
||||||
|
result = pop3_perform_authentication(conn);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user