[exim-cvs] Care with printability of logged information. Bug…

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Care with printability of logged information. Bug 1609
Gitweb: http://git.exim.org/exim.git/commitdiff/0ebc4d69b3211e47f0df60ebc43e1735d91286f8
Commit:     0ebc4d69b3211e47f0df60ebc43e1735d91286f8
Parent:     52a7b5f3f80a515983420bf9986f951186c931a5
Author:     Simon Amor <simon@???>
AuthorDate: Mon Apr 6 18:12:54 2015 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Apr 6 18:15:15 2015 +0100


    Care with printability of logged information.  Bug 1609
---
 src/src/smtp_in.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index 58ca02d..9b7c59d 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -2438,7 +2438,7 @@ if (++synprot_error_count > smtp_max_synprot_errors)
   yield = 1;
   log_write(0, LOG_MAIN|LOG_REJECT, "SMTP call from %s dropped: too many "
     "syntax or protocol errors (last command was \"%s\")",
-    host_and_ident(FALSE), smtp_cmd_buffer);
+    host_and_ident(FALSE), string_printing(smtp_cmd_buffer));
   }


 if (code > 0)
@@ -3397,7 +3397,7 @@ while (done <= 0)
         {
         log_write(0, LOG_MAIN|LOG_REJECT, "SMTP call from %s dropped: too many "
           "syntax or protocol errors (last command was \"%s\")",
-          host_and_ident(FALSE), smtp_cmd_buffer);
+          host_and_ident(FALSE), string_printing(smtp_cmd_buffer));
         done = 1;
         }


@@ -5015,7 +5015,7 @@ while (done <= 0)
       done = 2;
       log_write(0, LOG_MAIN|LOG_REJECT, "SMTP call from %s dropped: too many "
         "unrecognized commands (last was \"%s\")", host_and_ident(FALSE),
-        smtp_cmd_buffer);
+        string_printing(smtp_cmd_buffer));
       }
     else
       done = synprot_error(L_smtp_syntax_error, 500, NULL,