]> granicus.if.org Git - curl/commitdiff
smtp: Fix STARTTLS denied error message
authorJay Satiro <raysatiro@yahoo.com>
Thu, 12 Jan 2017 07:06:03 +0000 (02:06 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 12 Jan 2017 07:06:03 +0000 (02:06 -0500)
- Format the numeric denial code as an integer instead of a character.

lib/smtp.c

index ff8e80d6869cf6535956dc549f76c17558b1ac4b..bc9ccdf198cf6cec422b6ef3d41080bd0041ad2c 100644 (file)
@@ -692,7 +692,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);
+      failf(data, "STARTTLS denied, code %d", smtpcode);
       result = CURLE_USE_SSL_FAILED;
     }
     else