SECURITY: off-by-one in smtp transport (read response)
[exim.git] / src / src / smtp_out.c
index 2a392e50fb53f14a3788f831428e1666049eda5a..2a4497488bc1468c483a16cf8f3b712e94d71203 100644 (file)
@@ -659,7 +659,9 @@ if (format)
     while (*p) *p++ = '*';
     }
 
-  HDEBUG(D_transport|D_acl|D_v) debug_printf_indent("  SMTP>> %s\n", big_buffer);
+  HDEBUG(D_transport|D_acl|D_v) debug_printf_indent("  SMTP%c> %s\n",
+    mode == SCMD_BUFFER ? '|' : mode == SCMD_MORE ? '+' : '>',
+    big_buffer);
   }
 
 if (mode != SCMD_BUFFER)