The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0795e9b53cf5be68955b49dce87f4800fdfd4a89
commit 0795e9b53cf5be68955b49dce87f4800fdfd4a89 Author: Mark Johnston <[email protected]> AuthorDate: 2025-12-05 21:36:02 +0000 Commit: Mark Johnston <[email protected]> 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 <[email protected]> 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;
