Don't core dump on saslauthd lookups without service and realm.
Submitted by: Thomas Hager <thomas.hager@1012surf.net>
This commit is contained in:
parent
c7988d67cc
commit
a21407a9c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88002
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= exim
|
||||
PORTVERSION= ${EXIM_VERSION}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ${MASTER_SITE_EXIM}
|
||||
MASTER_SITE_SUBDIR= exim4
|
||||
|
12
mail/exim/files/patch-src::expand.c
Normal file
12
mail/exim/files/patch-src::expand.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user