mirror of
https://github.com/curl/curl.git
synced 2026-07-23 21:27:16 +03:00
STARTTLS: Don't print response character in denied messages
Both IMAP and POP3 response characters are used internally, but when appended to the STARTTLS denial message likely could confuse the user. Closes https://github.com/curl/curl/pull/1203
This commit is contained in:
parent
4e6f483d08
commit
a18db79262
2 changed files with 2 additions and 2 deletions
|
|
@ -952,7 +952,7 @@ static CURLcode imap_state_starttls_resp(struct connectdata *conn,
|
|||
|
||||
if(imapcode != 'O') {
|
||||
if(data->set.use_ssl != CURLUSESSL_TRY) {
|
||||
failf(data, "STARTTLS denied. %c", imapcode);
|
||||
failf(data, "STARTTLS denied");
|
||||
result = CURLE_USE_SSL_FAILED;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -799,7 +799,7 @@ static CURLcode pop3_state_starttls_resp(struct connectdata *conn,
|
|||
|
||||
if(pop3code != '+') {
|
||||
if(data->set.use_ssl != CURLUSESSL_TRY) {
|
||||
failf(data, "STARTTLS denied. %c", pop3code);
|
||||
failf(data, "STARTTLS denied");
|
||||
result = CURLE_USE_SSL_FAILED;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue