summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_attr.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-01-20 15:14:41 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-01-20 15:14:41 +0000
commit54f34fd0f318cbd44a76e2b1a17f103fe61cf3a7 (patch)
treed3f407f7bfb036ace5081f1e0f21a521b9440b98 /usr.sbin/bgpd/rde_attr.c
parent23b28435a2b818262c640d13a803761927201467 (diff)
Doh. > not < and attr_compare() starts to work correctly. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_attr.c')
-rw-r--r--usr.sbin/bgpd/rde_attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c
index 1139ee49208..bd38ab4563c 100644
--- a/usr.sbin/bgpd/rde_attr.c
+++ b/usr.sbin/bgpd/rde_attr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_attr.c,v 1.58 2006/01/10 16:11:12 claudio Exp $ */
+/* $OpenBSD: rde_attr.c,v 1.59 2006/01/20 15:14:40 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -232,7 +232,7 @@ attr_compare(struct rde_aspath *a, struct rde_aspath *b)
for (; l < b->others_len; l++)
if (b->others[l] != NULL)
return (-1);
- } else if (a->others_len < b->others_len) {
+ } else if (a->others_len > b->others_len) {
for (; l < a->others_len; l++)
if (a->others[l] != NULL)
return (1);