git: 301bd2998dc6 - main - pfctl: memset the pfctl struct in pfctl_reset()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Aug 2025 22:28:13 UTC
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=301bd2998dc686e2e51147f65e11f30fe321f7dc commit 301bd2998dc686e2e51147f65e11f30fe321f7dc Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2025-07-30 15:34:12 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2025-08-05 22:27:16 +0000 pfctl: memset the pfctl struct in pfctl_reset() OK jan@ Obtained from: OpenBSD, mbuhl <mbuhl@openbsd.org>, 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 ae772395e0ef..36bdd9705830 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);