mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
POP3: when USER command fails, don't even try PASS
This commit is contained in:
parent
313a5b05c2
commit
fa7341143a
@ -311,10 +311,10 @@ static CURLcode pop3_state_user_resp(struct connectdata *conn,
|
||||
failf(data, "Access denied. %c", pop3code);
|
||||
result = CURLE_LOGIN_DENIED;
|
||||
}
|
||||
|
||||
/* send PASS */
|
||||
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "PASS %s",
|
||||
pop3->passwd?pop3->passwd:"");
|
||||
else
|
||||
/* send PASS */
|
||||
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "PASS %s",
|
||||
pop3->passwd?pop3->passwd:"");
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user