From 54f34fd0f318cbd44a76e2b1a17f103fe61cf3a7 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 20 Jan 2006 15:14:41 +0000 Subject: Doh. > not < and attr_compare() starts to work correctly. OK henning@ --- usr.sbin/bgpd/rde_attr.c | 4 ++-- 1 file 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 @@ -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); -- cgit v1.2.3