diff options
author | Steve Holme <steve_holme@hotmail.com> | 2012-01-03 23:01:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-01-04 00:47:58 +0100 |
commit | 277022b2e48e338ca85adc4321f0cf5661df4713 (patch) | |
tree | 70041f87d3920db247b7c862c16ff5e5e7338089 /lib/smtp.c | |
parent | 0f8239d5b44b9dc027070385e5ebf7ac1f5d5560 (diff) | |
download | curl-277022b2e48e338ca85adc4321f0cf5661df4713.tar.gz |
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
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index 7512f1d0a..4cb25efca 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -510,7 +510,7 @@ static CURLcode smtp_state_starttls_resp(struct connectdata *conn, if(smtpcode != 220) { if(data->set.use_ssl != CURLUSESSL_TRY) { failf(data, "STARTTLS denied. %c", smtpcode); - result = CURLE_LOGIN_DENIED; + result = CURLE_USE_SSL_FAILED; } else result = smtp_authenticate(conn); |