e46022bb52
In this case PFTM_MAX == 20 and sizeof(pf_timeouts) / sizeof(pf_timeouts[0]) == 21, using a loop with the size of the array and checking for reaching the end of the loop via j == PFTM_MAX does not work. Change the loop to use PFTM_MAX as the upper bound and add an assertion in the code to make sure that pf_timeouts is large enough. Finally remove last NULL element of the array so that the array has 20 elements again. |
||
---|---|---|
.. | ||
pfctl | ||
pflogd |