mirror of
https://github.com/bol-van/zapret.git
synced 2025-02-26 05:55:39 +05:00
nfqws,tpws: fix hostlist-domains file open test
This commit is contained in:
parent
d89daaaeac
commit
af89d03118
@ -126,14 +126,14 @@ static bool test_list_files()
|
||||
struct ipset_file *ifile;
|
||||
|
||||
LIST_FOREACH(hfile, ¶ms.hostlists, next)
|
||||
if (!file_open_test(hfile->filename, O_RDONLY))
|
||||
if (hfile->filename && !file_open_test(hfile->filename, O_RDONLY))
|
||||
{
|
||||
DLOG_PERROR("file_open_test");
|
||||
DLOG_ERR("cannot access hostlist file '%s'\n",hfile->filename);
|
||||
return false;
|
||||
}
|
||||
LIST_FOREACH(ifile, ¶ms.ipsets, next)
|
||||
if (!file_open_test(ifile->filename, O_RDONLY))
|
||||
if (hfile->filename && !file_open_test(ifile->filename, O_RDONLY))
|
||||
{
|
||||
DLOG_PERROR("file_open_test");
|
||||
DLOG_ERR("cannot access ipset file '%s'\n",ifile->filename);
|
||||
|
@ -122,14 +122,14 @@ static bool test_list_files()
|
||||
struct ipset_file *ifile;
|
||||
|
||||
LIST_FOREACH(hfile, ¶ms.hostlists, next)
|
||||
if (!file_open_test(hfile->filename, O_RDONLY))
|
||||
if (hfile->filename && !file_open_test(hfile->filename, O_RDONLY))
|
||||
{
|
||||
DLOG_PERROR("file_open_test");
|
||||
DLOG_ERR("cannot access hostlist file '%s'\n",hfile->filename);
|
||||
return false;
|
||||
}
|
||||
LIST_FOREACH(ifile, ¶ms.ipsets, next)
|
||||
if (!file_open_test(ifile->filename, O_RDONLY))
|
||||
if (hfile->filename && !file_open_test(ifile->filename, O_RDONLY))
|
||||
{
|
||||
DLOG_PERROR("file_open_test");
|
||||
DLOG_ERR("cannot access ipset file '%s'\n",ifile->filename);
|
||||
|
Loading…
Reference in New Issue
Block a user