Date: Tue, 5 Aug 2025 22:28:13 GMT From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 301bd2998dc6 - main - pfctl: memset the pfctl struct in pfctl_reset() Message-ID: <202508052228.575MSDX8014490@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508052228.575MSDX8014490>