summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2018-07-10 08:00:09 +0000
committerbenno <benno@openbsd.org>2018-07-10 08:00:09 +0000
commitd4f943c4272282afd1770246a17463ac9a14910c (patch)
tree715a3a4a8702ad08f3af14a29c0e9f548ec82bcd
parentActually clear the right thing in rib_free() (diff)
downloadwireguard-openbsd-d4f943c4272282afd1770246a17463ac9a14910c.tar.xz
wireguard-openbsd-d4f943c4272282afd1770246a17463ac9a14910c.zip
compare the right things here: we want to know if the flag has changed.
Found with claudios help and patience. ok phessler@ claudio@
-rw-r--r--usr.sbin/bgpd/rde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 3c56efc9cda..1cf24fda878 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.386 2018/07/09 14:44:02 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.387 2018/07/10 08:00:09 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -767,7 +767,7 @@ rde_dispatch_imsg_parent(struct imsgbuf *ibuf)
rib = rib_new(rn.name, rn.rtableid, rn.flags);
else if (rib->rtableid != rn.rtableid ||
(rib->flags & F_RIB_HASNOFIB) !=
- (rib->flags & F_RIB_HASNOFIB)) {
+ (rn.flags & F_RIB_HASNOFIB)) {
struct filter_head *in_rules;
struct rib_desc *ribd = rib_desc(rib);
/*