mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 09:26:27 -04:00
(i.e. when the dot appears on the line directly after the headers). This could be used by an attacker to exhaust resources. PR: 227899 Submitted by: grembo Obtained from: OpenSMTPD git repo (backported) MFH: 2018Q2
11 lines
286 B
C
11 lines
286 B
C
--- smtpd/smtp_session.c.orig 2018-05-01 13:35:00.375262000 +0000
|
|
+++ smtpd/smtp_session.c 2018-05-01 13:37:22.637096000 +0000
|
|
@@ -1345,6 +1345,8 @@
|
|
s->dataeom = 1;
|
|
if (iobuf_queued(&s->obuf) == 0)
|
|
smtp_data_io_done(s);
|
|
+ else
|
|
+ io_reload(&s->oev);
|
|
return;
|
|
}
|
|
|