Date: Mon, 08 Dec 2025 14:11:59 +0000 From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0795e9b53cf5 - main - pf: Fix an off-by-one in pf_handle_getcreators() Message-ID: <6936dcaf.2f1ad.6e2e0beb@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0795e9b53cf5be68955b49dce87f4800fdfd4a89 commit 0795e9b53cf5be68955b49dce87f4800fdfd4a89 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-12-05 21:36:02 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-12-08 14:08:13 +0000 pf: Fix an off-by-one in pf_handle_getcreators() Reviewed by: kp Reported by: Kevin Day <kevin@your.org> MFC after: 1 week Fixes: a7191e5d7b62 ("pf: add a way to list creator ids") Differential Revision: https://reviews.freebsd.org/D54083 --- sys/netpfil/pf/pf_nl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/pf/pf_nl.c b/sys/netpfil/pf/pf_nl.c index 7a3775b97b3a..bd49d0a1850f 100644 --- a/sys/netpfil/pf/pf_nl.c +++ b/sys/netpfil/pf/pf_nl.c @@ -363,7 +363,7 @@ pf_handle_getcreators(struct nlmsghdr *hdr, struct nl_pstate *npt) bzero(creators, sizeof(creators)); - for (int i = 0; i < V_pf_hashmask; i++) { + for (int i = 0; i <= V_pf_hashmask; i++) { struct pf_idhash *ih = &V_pf_idhash[i]; struct pf_kstate *s;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6936dcaf.2f1ad.6e2e0beb>
