mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
pfctl: Don't retrieve interface list if '-n' is set
If '-n' is set we don't use the list of skip interfaces, so don't retrieve it. This fixes issues if 'pfctl -n' is used before the pf module is loaded. This was broken by r333181. Reported by: Jakub Chromy <hicks AT cgi.cz> MFC after: 1 week
This commit is contained in:
parent
8e9b3e7071
commit
7a2bf4c52e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335886
@ -2409,7 +2409,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if ((rulesopt != NULL) && (loadopt & PFCTL_FLAG_OPTION) &&
|
||||
!anchorname[0])
|
||||
!anchorname[0] && !(opts & PF_OPT_NOACTION))
|
||||
if (pfctl_get_skip_ifaces())
|
||||
error = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user