diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 22:56:13 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 22:56:13 +0200 |
commit | fa7341143a4bb5c1c1a2d43375bbc9a2157938ec (patch) | |
tree | 26ebf6fd762a643bb4f33411b49c25d5b496597d /lib | |
parent | 313a5b05c225ccf7de326cb137dfca053782e0e1 (diff) |
POP3: when USER command fails, don't even try PASS
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pop3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pop3.c b/lib/pop3.c index 4894f3c44..34c6fdfb1 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -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; |