summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2018-02-10 04:23:49 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2018-02-10 04:23:49 +0000
commit2780872437ec850fbe52c95a6917c0febaf3eac0 (patch)
treed18e5b4f3f10dc2cf1241fa27533544ed734e45e
parent46d353803ce183eaa3816effbf499d31ce396b28 (diff)
claudio noted that this is an else case because we have either a
prefix or a prefix-set.
-rw-r--r--usr.sbin/bgpd/rde_filter.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/rde_filter.c b/usr.sbin/bgpd/rde_filter.c
index 7b1a52e5022..a963162b093 100644
--- a/usr.sbin/bgpd/rde_filter.c
+++ b/usr.sbin/bgpd/rde_filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_filter.c,v 1.85 2018/02/10 01:24:28 benno Exp $ */
+/* $OpenBSD: rde_filter.c,v 1.86 2018/02/10 04:23:48 benno Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -490,10 +490,7 @@ rde_filter_match(struct filter_rule *f, struct rde_aspath *asp,
}
}
return (0);
- }
-
- /* XXX must be last because we unconditionally return here */
- if (f->match.prefix.addr.aid != 0)
+ } else if (f->match.prefix.addr.aid != 0)
return (rde_test_prefix(&f->match.prefix, prefix, plen));
/* matched somewhen or is anymatch rule */