summaryrefslogtreecommitdiff
path: root/mail/opensmtpd-devel/files/patch-smtpd-rfc2822.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/opensmtpd-devel/files/patch-smtpd-rfc2822.c')
-rw-r--r--mail/opensmtpd-devel/files/patch-smtpd-rfc2822.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/mail/opensmtpd-devel/files/patch-smtpd-rfc2822.c b/mail/opensmtpd-devel/files/patch-smtpd-rfc2822.c
new file mode 100644
index 000000000000..67952346556e
--- /dev/null
+++ b/mail/opensmtpd-devel/files/patch-smtpd-rfc2822.c
@@ -0,0 +1,19 @@
+--- smtpd/rfc2822.c.orig 2018-05-01 13:33:10.000000000 +0000
++++ smtpd/rfc2822.c 2018-05-01 13:34:47.931554000 +0000
+@@ -53,4 +53,7 @@
+ struct rfc2822_hdr_miss_cb *hdr_miss_cb;
++
++ if (!rp->in_hdr)
++ goto end;
+
+ TAILQ_FOREACH(hdr_cb, &rp->hdr_cb, next)
+ if (strcasecmp(hdr_cb->name, rp->header.name) == 0) {
+@@ -151,6 +152,8 @@
+ return;
+
+ header_callback(rp);
++
++ missing_headers_callback(rp);
+ }
+
+ void