summaryrefslogtreecommitdiffstats
path: root/nest/rt-attr.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-08-21 09:31:35 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-08-21 09:31:35 +0200
commitfee78355b480294f28c3c6814953297dca92d4a0 (patch)
tree4acbb2b6dc7a38d60458a2e27419352793db97f9 /nest/rt-attr.c
parentc5be5a163c2a7b640cb3d0942de44ec87de0f25b (diff)
downloadbird-fee78355b480294f28c3c6814953297dca92d4a0.tar
bird-fee78355b480294f28c3c6814953297dca92d4a0.zip
Fixes bug in eattr binary search.
Diffstat (limited to 'nest/rt-attr.c')
-rw-r--r--nest/rt-attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index de63198..9d78ce0 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -74,7 +74,7 @@ ea__find(ea_list *e, unsigned id)
if (e->flags & EALF_BISECT)
{
l = 0;
- r = e->count + 1;
+ r = e->count - 1;
while (l <= r)
{
m = (l+r) / 2;