Fixed incorrect error code being returned in STARTTLS
The STARTTLS response code in SMTP, POP3 and IMAP would return CURLE_LOGIN_DENIED rather than CURLE_USE_SSL_FAILED when SSL/TLS was not available on the server. Reported by: Gokhan Sengun Bug: http://curl.haxx.se/mail/lib-2012-01/0018.html
This commit is contained in:
committed by
Daniel Stenberg
parent
0f8239d5b4
commit
277022b2e4
@@ -355,7 +355,7 @@ static CURLcode imap_state_starttls_resp(struct connectdata *conn,
|
||||
|
||||
if(imapcode != 'O') {
|
||||
failf(data, "STARTTLS denied. %c", imapcode);
|
||||
result = CURLE_LOGIN_DENIED;
|
||||
result = CURLE_USE_SSL_FAILED;
|
||||
}
|
||||
else {
|
||||
if(data->state.used_interface == Curl_if_multi) {
|
||||
|
||||
Reference in New Issue
Block a user