Fix segfault in stdio with non-SMTP MIME ACL.
authorPhil Pennock <pdp@exim.org>
Wed, 31 Jul 2013 22:50:04 +0000 (18:50 -0400)
committerPhil Pennock <pdp@exim.org>
Wed, 31 Jul 2013 22:50:04 +0000 (18:50 -0400)
commitf4c1088bb7af23e4b613672230868056d46239a5
tree5fa559bb92f491199022840e5c64f20dab4d9c8e
parent60f8e1e888f78e559e718c2e23c1ceb0546779a8
Fix segfault in stdio with non-SMTP MIME ACL.

When injecting a message locally in non-SMTP mode, and with MIME ACLs
configured, if the ACL rejected the message, Exim would try to
`fprintf(NULL, "%s", the_message)`.  This fixes that.

Most ACLs are plumbed in SMTP-only and looking through the others in
receive.c, they all appear to be safely guarded, so it was just this one
that slipped through.

Crash report and assistance tracking down the root cause from Warren
Baker.
doc/doc-txt/ChangeLog
src/ACKNOWLEDGMENTS
src/src/receive.c