mirror of
https://github.com/bol-van/zapret.git
synced 2026-10-17 03:25:21 +09:00
nfqws,tpws: fix hostlist-domains file open test
This commit is contained in:
1 parent
d89daaaeac
commit
af89d03118
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user