summaryrefslogtreecommitdiffstats
path: root/network/opensmtpd/openbsd64-020-smtpd.patch
diff options
context:
space:
mode:
author Matteo Bernardini2019-11-23 17:01:07 +0100
committer Matteo Bernardini2019-11-23 17:01:07 +0100
commit6b48d82e578c25792056a160476598a0c7cb5f21 (patch)
treeb46961106d9f7c026b81a685bc26d23b5052b19e /network/opensmtpd/openbsd64-020-smtpd.patch
parent12d62c31c39761316cffa2b3236f1e96ba97caf3 (diff)
downloadslackbuilds-current-20191123.1.tar.gz
20191123.1 global branch merge.current-20191123.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/opensmtpd/openbsd64-020-smtpd.patch')
-rw-r--r--network/opensmtpd/openbsd64-020-smtpd.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/network/opensmtpd/openbsd64-020-smtpd.patch b/network/opensmtpd/openbsd64-020-smtpd.patch
deleted file mode 100644
index a1aa51607a..0000000000
--- a/network/opensmtpd/openbsd64-020-smtpd.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- a/smtpd/smtp_session.c 3 Sep 2018 19:01:29 -0000 1.337
-+++ b/smtpd/smtp_session.c 1 Aug 2019 21:18:53 -0000
-@@ -1904,15 +1904,21 @@ smtp_reply(struct smtp_session *s, char
- {
- va_list ap;
- int n;
-- char buf[LINE_MAX], tmp[LINE_MAX];
-+ char buf[LINE_MAX*2], tmp[LINE_MAX*2];
-
- va_start(ap, fmt);
- n = vsnprintf(buf, sizeof buf, fmt, ap);
- va_end(ap);
-- if (n == -1 || n >= LINE_MAX)
-- fatalx("smtp_reply: line too long");
-+ if (n < 0)
-+ fatalx("smtp_reply: response format error");
- if (n < 4)
- fatalx("smtp_reply: response too short");
-+ if (n >= (int)sizeof buf) {
-+ /* only first three bytes are used by SMTP logic,
-+ * so if _our_ reply does not fit entirely in the
-+ * buffer, it's ok to truncate.
-+ */
-+ }
-
- log_trace(TRACE_SMTP, "smtp: %p: >>> %s", s, buf);
-