Fix bogon in ipfilter_resync() introduced in my last commit.
Spotted by: Gennady Proskurin <gpr@nvnpp.vrn.ru>
This commit is contained in:
parent
b75bead1f2
commit
c7b33a84a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120686
@ -164,7 +164,9 @@ ipfilter_resync()
|
||||
case ${OSTYPE} in
|
||||
FreeBSD)
|
||||
# Don't resync if ipfilter is not loaded
|
||||
[ kldstat -v | grep "IP Filter" > /dev/null 2>&1 ] && return
|
||||
if ! kldstat -v | grep "IP Filter" > /dev/null 2>&1; then
|
||||
return
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
|
||||
|
Loading…
Reference in New Issue
Block a user