aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2026-04-16 13:53:15 +0000
committerKristof Provost <kp@FreeBSD.org>2026-04-17 11:55:07 +0000
commit3c9cd6e4dc59202f2b150a5456541629b633af3b (patch)
tree10395cab46d97c956d6c57bfffcc7df720f376a4
parent5b7192230a15bbf2378b8f74278d21d4766c5110 (diff)
pf: use correct address family in pfr_pool_get()
pfr_pool_get() in call to pfr_prepare_network()must use af instead of hardcoded AF_INET Issues reported and patch submitted by: Renaud Allard <renaud () allard ! it> OK sashan@ Obtained from: OpenBSD, sashan <sashan@openbsd.org>, 8e156a5ebe Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--sys/netpfil/pf/pf_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf_table.c b/sys/netpfil/pf/pf_table.c
index 650334c45db3..e6290e622fea 100644
--- a/sys/netpfil/pf/pf_table.c
+++ b/sys/netpfil/pf/pf_table.c
@@ -2423,7 +2423,7 @@ _next_block:
_next_entry:
/* we need to increase the counter past the nested block */
- pfr_prepare_network(&umask, AF_INET, ke2->pfrke_net);
+ pfr_prepare_network(&umask, af, ke2->pfrke_net);
pfr_sockaddr_to_pf_addr(&umask, &umask_addr);
pf_poolmask(addr, addr, &umask_addr, &pfr_ffaddr, af);
pf_addr_inc(addr, af);