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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user