mirror of
https://github.com/curl/curl.git
synced 2026-08-15 10:33:38 +03:00
[pop3 starttls] PASS command was not sent after upgrade to TLS.
This commit is contained in:
parent
e7837bfd03
commit
db59b6202d
1 changed files with 4 additions and 1 deletions
|
|
@ -298,6 +298,7 @@ static CURLcode pop3_state_starttls_resp(struct connectdata *conn,
|
||||||
if(pop3code != 'O') {
|
if(pop3code != 'O') {
|
||||||
failf(data, "STARTTLS denied. %c", pop3code);
|
failf(data, "STARTTLS denied. %c", pop3code);
|
||||||
result = CURLE_LOGIN_DENIED;
|
result = CURLE_LOGIN_DENIED;
|
||||||
|
state(conn, POP3_STOP);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Curl_ssl_connect is BLOCKING */
|
/* Curl_ssl_connect is BLOCKING */
|
||||||
|
|
@ -306,8 +307,10 @@ static CURLcode pop3_state_starttls_resp(struct connectdata *conn,
|
||||||
pop3_to_pop3s(conn);
|
pop3_to_pop3s(conn);
|
||||||
result = pop3_state_user(conn);
|
result = pop3_state_user(conn);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
state(conn, POP3_STOP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
state(conn, POP3_STOP);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue