aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-16 22:56:13 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-16 22:56:13 +0200
commitfa7341143a4bb5c1c1a2d43375bbc9a2157938ec (patch)
tree26ebf6fd762a643bb4f33411b49c25d5b496597d /lib
parent313a5b05c225ccf7de326cb137dfca053782e0e1 (diff)
POP3: when USER command fails, don't even try PASS
Diffstat (limited to 'lib')
-rw-r--r--lib/pop3.c8
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;