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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user