diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2025-12-05 21:36:02 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-12-08 14:08:13 +0000 |
| commit | 0795e9b53cf5be68955b49dce87f4800fdfd4a89 (patch) | |
| tree | b3a1b3880ade6ba072399114936054fb7b024b74 | |
| parent | 97a24b350c4b9400749e5b199d563e2ed3dfbe6d (diff) | |
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
| -rw-r--r-- | sys/netpfil/pf/pf_nl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
