diff options
author | 2015-01-20 17:25:35 +0000 | |
---|---|---|
committer | 2015-01-20 17:25:35 +0000 | |
commit | 21c53b85da3dcb5e4f1111559c5d392339542ce7 (patch) | |
tree | 10878974234711586147c69459668d17312d69a2 | |
parent | Rewrite to void using union sockaddr_union (diff) | |
download | wireguard-openbsd-21c53b85da3dcb5e4f1111559c5d392339542ce7.tar.xz wireguard-openbsd-21c53b85da3dcb5e4f1111559c5d392339542ce7.zip |
Prevent tables referenced by rules in anchors from getting disabled.
Analysis and patch by Richard Kojedzinszky, thanks! ok henning
-rw-r--r-- | sys/net/pf_table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf_table.c b/sys/net/pf_table.c index 9ee25780988..4e43c4ca539 100644 --- a/sys/net/pf_table.c +++ b/sys/net/pf_table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_table.c,v 1.104 2014/12/19 17:14:40 tedu Exp $ */ +/* $OpenBSD: pf_table.c,v 1.105 2015/01/20 17:25:35 mikeb Exp $ */ /* * Copyright (c) 2002 Cedric Berger @@ -1896,6 +1896,7 @@ pfr_setflags_ktable(struct pfr_ktable *kt, int newf) struct pfr_kentryworkq addrq; if (!(newf & PFR_TFLAG_REFERENCED) && + !(newf & PFR_TFLAG_REFDANCHOR) && !(newf & PFR_TFLAG_PERSIST)) newf &= ~PFR_TFLAG_ACTIVE; if (!(newf & PFR_TFLAG_ACTIVE)) |