]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pfilctl: fix 'pfilctl hooks' when nothing is connected
authorGleb Smirnoff <glebius@FreeBSD.org>
Thu, 28 Mar 2024 21:10:15 +0000 (14:10 -0700)
committerGleb Smirnoff <glebius@FreeBSD.org>
Thu, 28 Mar 2024 21:10:15 +0000 (14:10 -0700)
commit1bfe195143ffb6832ac6702e281964541554fcb3
tree2b6ea27676d16c78b125c89d5e3ee7679638dee1
parent722b8e3cb62bd3e43035527e08fe058d5046901d
pfilctl: fix 'pfilctl hooks' when nothing is connected

The 'hooks' command actually worked accidentially until now.  It used
PFILIOC_LISTHEADS to determine current number of hooks.  This worked when
at least one head had a hook connected to it.
sbin/pfilctl/pfilctl.c