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:
parent
6ff1663900
commit
0224f8ad6b
2
acl.y
2
acl.y
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user