From 301bd2998dc686e2e51147f65e11f30fe321f7dc Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Wed, 30 Jul 2025 17:34:12 +0200 Subject: [PATCH] pfctl: memset the pfctl struct in pfctl_reset() OK jan@ Obtained from: OpenBSD, mbuhl , 94c97b180b Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/pfctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index ae772395e0e..36bdd970583 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -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);