diff options
-rw-r--r-- | sbin/pfctl/pfctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index d8e44de2bb1..19080f940fb 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.228 2004/12/29 10:54:01 henning Exp $ */ +/* $OpenBSD: pfctl.c,v 1.229 2004/12/29 14:21:01 danh Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1712,7 +1712,8 @@ main(int argc, char *argv[]) rulesopt = NULL; } - if ((rulesopt != NULL) && (!*anchorname)) + if ((rulesopt != NULL) && (!*anchorname) + && (opts & PF_OPT_NOACTION) == 0) if (pfctl_clear_interface_flags(dev, opts | PF_OPT_QUIET)) error = 1; |