Skip to content

Commit

Permalink
napt: restore to the initial state in deinit
Browse files Browse the repository at this point in the history
This bug casue NAPT not work as normal after deinit then reinit
  • Loading branch information
leeebo authored and david-cermak committed Sep 20, 2023
1 parent 4f24c9b commit 0f2d472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ipv4/ip4_napt.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ static void
ip_napt_deinit(void)
{
napt_list = NO_IDX;
napt_list_last = NO_IDX;
napt_free = 0;
ip_napt_max = 0;
ip_portmap_max = 0;
mem_free(ip_napt_table);
Expand Down

0 comments on commit 0f2d472

Please sign in to comment.