git: 3c9cd6e4dc59 - main - pf: use correct address family in pfr_pool_get()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Apr 2026 11:55:45 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=3c9cd6e4dc59202f2b150a5456541629b633af3b
commit 3c9cd6e4dc59202f2b150a5456541629b633af3b
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-04-16 13:53:15 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-04-17 11:55:07 +0000
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")
---
sys/netpfil/pf/pf_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);