mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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:
parent
d8761e109d
commit
301bd2998d
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue