pfctl: memset the pfctl struct in pfctl_reset()

OK jan@

Obtained from:	OpenBSD, mbuhl <mbuhl@openbsd.org>, 94c97b180b
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost 2025-07-30 17:34:12 +02:00
parent d8761e109d
commit 301bd2998d

View file

@ -3139,6 +3139,7 @@ pfctl_reset(int dev, int opts)
struct pfr_buffer t;
int i;
memset(&pf, 0, sizeof(pf));
pf.dev = dev;
pf.h = pfh;
pfctl_init_options(&pf);