summaryrefslogtreecommitdiffstats
path: root/mail/exim
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2003-08-29 20:21:22 +0000
committersheldonh <sheldonh@FreeBSD.org>2003-08-29 20:21:22 +0000
commiteec243c411a67937ccf966b0f97355b359fcd19f (patch)
tree53dad99d76771383335c9080ba9cfe73096f0d92 /mail/exim
parent87fdfd8f54b3863f4a8c6370d61336fe54df7ed7 (diff)
downloadFreeBSD-ports-eec243c411a67937ccf966b0f97355b359fcd19f.zip
FreeBSD-ports-eec243c411a67937ccf966b0f97355b359fcd19f.tar.gz
Don't core dump on saslauthd lookups without service and realm.
Submitted by: Thomas Hager <thomas.hager@1012surf.net>
Diffstat (limited to 'mail/exim')
-rw-r--r--mail/exim/Makefile1
-rw-r--r--mail/exim/files/patch-src::expand.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index dfb0665..8ffd621 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -7,6 +7,7 @@
PORTNAME= exim
PORTVERSION= ${EXIM_VERSION}
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_EXIM}
MASTER_SITE_SUBDIR= exim4
diff --git a/mail/exim/files/patch-src::expand.c b/mail/exim/files/patch-src::expand.c
new file mode 100644
index 0000000..0d3cdca
--- /dev/null
+++ b/mail/exim/files/patch-src::expand.c
@@ -0,0 +1,12 @@
+--- src/expand.c.orig Mon Aug 18 14:52:54 2003
++++ src/expand.c Fri Aug 29 17:51:12 2003
+@@ -1462,6 +1462,9 @@
+ if (yield != NULL)
+ {
+ int rc;
++
++ if ( sub[2] == NULL ) sub[3] = NULL;
++
+ rc = auth_call_saslauthd(sub[0], sub[1], sub[2], sub[3],
+ &expand_string_message);
+ if (rc == ERROR || rc == DEFER) return NULL;
OpenPOWER on IntegriCloud