compare the right things here: we want to know if the flag has changed.
authorbenno <benno@openbsd.org>
Tue, 10 Jul 2018 08:00:09 +0000 (08:00 +0000)
committerbenno <benno@openbsd.org>
Tue, 10 Jul 2018 08:00:09 +0000 (08:00 +0000)
Found with claudios help and patience.
ok phessler@ claudio@

usr.sbin/bgpd/rde.c

index 3c56efc..1cf24fd 100644 (file)
@@ -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);
                                /*