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:		a7191e5d7b ("pf: add a way to list creator ids")
Differential Revision:	https://reviews.freebsd.org/D54083
This commit is contained in:
Mark Johnston
2025-12-05 21:36:02 +00:00
parent 97a24b350c
commit 0795e9b53c
+1 -1
View File
@@ -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;