Skip to content

Commit

Permalink
fix wrong var
Browse files Browse the repository at this point in the history
  • Loading branch information
bol-van committed Feb 25, 2025
1 parent af89d03 commit 8ac4fc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ nfqws,tpws: hostlist/ipset track not only file mod time but also file size
nfqws,tpws,ipset: return lists reload on HUP
nfqws,blockcheck: --dpi-desync-fake-tls-mod

v70.1
v70.3

nfqws: --dpi-desync-fake-tls-mod=dupsid
nfqws,tpws: test accessibility of list files after privs drop
Expand Down
2 changes: 1 addition & 1 deletion nfq/nfqws.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static bool test_list_files()
return false;
}
LIST_FOREACH(ifile, &params.ipsets, next)
if (hfile->filename && !file_open_test(ifile->filename, O_RDONLY))
if (ifile->filename && !file_open_test(ifile->filename, O_RDONLY))
{
DLOG_PERROR("file_open_test");
DLOG_ERR("cannot access ipset file '%s'\n",ifile->filename);
Expand Down
4 changes: 3 additions & 1 deletion tpws/tpws.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ static bool test_list_files()
struct hostlist_file *hfile;
struct ipset_file *ifile;

printf("1\n");
LIST_FOREACH(hfile, &params.hostlists, next)
if (hfile->filename && !file_open_test(hfile->filename, O_RDONLY))
{
Expand All @@ -129,12 +130,13 @@ static bool test_list_files()
return false;
}
LIST_FOREACH(ifile, &params.ipsets, next)
if (hfile->filename && !file_open_test(ifile->filename, O_RDONLY))
if (ifile->filename && !file_open_test(ifile->filename, O_RDONLY))
{
DLOG_PERROR("file_open_test");
DLOG_ERR("cannot access ipset file '%s'\n",ifile->filename);
return false;
}
printf("2\n");
return true;
}

Expand Down

0 comments on commit 8ac4fc0

Please sign in to comment.