mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue