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:
Jay Satiro 2017-01-12 02:22:41 -05:00
parent 4e6f483d08
commit a18db79262
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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