commit 8e67c891c465744941c9f33ffab9c95ef9fa574c parent e589c6703e9f83783c6b7f1e182f8a96ffd2ff64 Author: deurzen <m.deurzen@tum.de> Date: Sun, 10 Jan 2021 14:05:09 +0100 fixes issue Diffstat:
M | src/porthide.c | | | 10 | ++++++---- |
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/porthide.c b/src/porthide.c @@ -86,16 +86,18 @@ stage3_knock(lport_t port) void clear_hidden_lports(void) { - lport_list_t_ptr i = ips_stage1_tail; + lport_list_t_ptr i; + + i = ips_stage1_tail; while ((i = remove_knock_from_list(i, i->lport))); - lport_list_t_ptr i = ips_stage2_tail; + i = ips_stage2_tail; while ((i = remove_knock_from_list(i, i->lport))); - lport_list_t_ptr i = ips_stage3_tail; + i = ips_stage3_tail; while ((i = remove_knock_from_list(i, i->lport))); - lport_list_t_ptr i = hidden_lports_tail; + i = hidden_lports_tail; while ((i = remove_lport_from_list(i, i->lport))); }