From 8ac4fc0af5902a1397e5ec835fe9a61663f6871f Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 26 Feb 2025 01:11:07 +0300 Subject: [PATCH] fix wrong var --- docs/changes.txt | 2 +- nfq/nfqws.c | 2 +- tpws/tpws.c | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 545dccd..818e99a 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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 diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 9d2c0e9..4f25518 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -133,7 +133,7 @@ static bool test_list_files() return false; } LIST_FOREACH(ifile, ¶ms.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); diff --git a/tpws/tpws.c b/tpws/tpws.c index ea71787..a166264 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -121,6 +121,7 @@ static bool test_list_files() struct hostlist_file *hfile; struct ipset_file *ifile; +printf("1\n"); LIST_FOREACH(hfile, ¶ms.hostlists, next) if (hfile->filename && !file_open_test(hfile->filename, O_RDONLY)) { @@ -129,12 +130,13 @@ static bool test_list_files() return false; } LIST_FOREACH(ifile, ¶ms.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; }