aboutsummaryrefslogtreecommitdiff
path: root/mail/exim/files
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2005-04-20 18:24:08 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2005-04-20 18:24:08 +0000
commit29666178edb4e86077e75ac5d5cc5a470c08b79c (patch)
tree7feacfd45ec54d3ccd0927c4179634846afdd25e /mail/exim/files
parent91e900b2d61372800a5975ec58bd160cec2b6a9b (diff)
Notes
Diffstat (limited to 'mail/exim/files')
-rw-r--r--mail/exim/files/patch-src_smtp__in.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/exim/files/patch-src_smtp__in.c b/mail/exim/files/patch-src_smtp__in.c
new file mode 100644
index 000000000000..12c5e0584c13
--- /dev/null
+++ b/mail/exim/files/patch-src_smtp__in.c
@@ -0,0 +1,22 @@
+
+$FreeBSD$
+
+--- src/smtp_in.c.orig
++++ src/smtp_in.c
+@@ -1610,6 +1610,8 @@
+ &tzero) > 0)
+ {
+ int rc = read(fileno(smtp_in), smtp_inbuffer, in_buffer_size);
++ if (rc > 0)
++ {
+ if (rc > 150) rc = 150;
+ smtp_inbuffer[rc] = 0;
+ log_write(0, LOG_MAIN|LOG_REJECT, "SMTP protocol violation: "
+@@ -1618,6 +1620,7 @@
+ string_printing(smtp_inbuffer));
+ smtp_printf("554 SMTP synchronization error\r\n");
+ return FALSE;
++ }
+ }
+ }
+