When running in listserv mode, there is no 'listname' which can be

used to get the mailing list's configuration. Thus, the routine
shouldn't try to got one. Fixed it.
This commit is contained in:
Peter Simons 2001-01-10 17:07:19 +00:00
parent 6ff1663900
commit 0224f8ad6b

2
acl.y
View File

@ -245,7 +245,6 @@ int checkACL(struct Mail * MailStruct,
assert(parameter_ptr != NULL);
MasterConfig = getMasterConfig();
ListConfig = getListConfig(listname);
g_MailStruct = MailStruct;
g_parameter = NULL;
@ -299,6 +298,7 @@ check_local_acl_file:
if (listname == NULL)
goto finished;
ListConfig = getListConfig(listname);
yyin = fopen(ListConfig->acl_file, "r");
if (yyin == NULL) {
switch(errno) {