summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-07-10 10:09:42 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-07-10 10:09:42 +0000
commitdec054a549da59ea504b6f4a94b6214e69aa06d3 (patch)
treea0e0e6a37514bf969fb1d990ae32bb420105c8e5 /usr.sbin
parentc8ebe13a2b1c986920c604e50db24611cdfaa757 (diff)
Fix reverse logic bug in the prefix filter.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde_filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde_filter.c b/usr.sbin/bgpd/rde_filter.c
index 3aab373ab35..5bd8cb7afae 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.12 2004/07/05 16:54:53 henning Exp $ */
+/* $OpenBSD: rde_filter.c,v 1.13 2004/07/10 10:09:41 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -112,8 +112,8 @@ rde_filter_match(struct filter_rule *f, struct attr_flags *attrs,
if (f->match.prefix.addr.af != 0 &&
f->match.prefix.addr.af == prefix->af) {
- if (prefix_equal(prefix, &f->match.prefix.addr,
- f->match.prefix.len) != 0)
+ if (!prefix_equal(prefix, &f->match.prefix.addr,
+ f->match.prefix.len))
return (0);
/* test prefixlen stuff too */