diff options
author | Kristof Provost <kp@FreeBSD.org> | 2018-07-03 08:50:49 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2018-07-03 08:50:49 +0000 |
commit | 7a2bf4c52ec41f53ca949893ebeb9c7a01bd8f5d (patch) | |
tree | 7d9ed3b20150ae2d75234fc4ddbb6674ab14c76b /sbin/pfctl | |
parent | 8e9b3e707151d136ec95e7f1d37556e39c1e228c (diff) | |
download | src-7a2bf4c52ec41f53ca949893ebeb9c7a01bd8f5d.tar.gz src-7a2bf4c52ec41f53ca949893ebeb9c7a01bd8f5d.zip |
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
Notes
Notes:
svn path=/head/; revision=335886
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 6388db90d97d..7e5da60ed200 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -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; |