HomeFreeBSD

pf: Fix use-after-free of counters

Description

pf: Fix use-after-free of counters

When cleaning up a vnet we free the counters in V_pf_default_rule and
V_pf_status from shutdown_pf(), but we can still use them later, for example
through pf_purge_expired_src_nodes().

Free them as the very last operation, as they rely on nothing else themselves.

PR: 235097
MFC after: 1 week

Details

Provenance
kpAuthored on
Parents
rS343417: net80211: reuse TICKS_2_MSEC / MSEC_2_TICKS macros from sys/time.h
Branches
Unknown
Tags
Unknown