diff options
author | 2016-10-28 07:54:19 +0000 | |
---|---|---|
committer | 2016-10-28 07:54:19 +0000 | |
commit | 7c6e64c4fb093cd15f832bfd7386305073fbc135 (patch) | |
tree | 9d95a7992455aa9811f5ea7508ac149fdb78ae12 /sys/net/pf_ioctl.c | |
parent | Document that "nl -d" uses LC_CTYPE. (diff) | |
download | wireguard-openbsd-7c6e64c4fb093cd15f832bfd7386305073fbc135.tar.xz wireguard-openbsd-7c6e64c4fb093cd15f832bfd7386305073fbc135.zip |
- once rule should not attempt to remove its parent rule.
(problem pointed out by Petr, fix proposed by Dilli) _at_ oracle
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r-- | sys/net/pf_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index 6c774eb6bbf..82bc2ed1269 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.303 2016/10/26 21:07:22 bluhm Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.304 2016/10/28 07:54:19 sashan Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -320,6 +320,7 @@ pf_purge_rule(struct pf_rule *rule) rule->nr = nr++; ruleset->rules.active.ticket++; pf_calc_skip_steps(ruleset->rules.active.ptr); + pf_remove_if_empty_ruleset(ruleset); } u_int16_t |