summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_rib.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-01-09 16:00:49 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-01-09 16:00:49 +0000
commit84d6f920fda39d036cb3526bd9ce457032191ab0 (patch)
treee9f09fab11db177c585c3f181fe6f0130179f825 /usr.sbin/bgpd/rde_rib.c
parentfb4205421dd06345cb985ab4252728fdb3a7a304 (diff)
Ups. Inverse logic.
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r--usr.sbin/bgpd/rde_rib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index 56fd55f55ed..a06200c728d 100644
--- a/usr.sbin/bgpd/rde_rib.c
+++ b/usr.sbin/bgpd/rde_rib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_rib.c,v 1.75 2006/01/05 17:33:40 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.76 2006/01/09 16:00:48 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -206,7 +206,7 @@ void
path_destroy(struct rde_aspath *asp)
{
/* path_destroy can only unlink and free empty rde_aspath */
- if (asp->prefix_cnt == 0 && asp->active_cnt == 0)
+ if (asp->prefix_cnt != 0 || asp->active_cnt != 0)
log_warnx("path_destroy: prefix count out of sync");
nexthop_unlink(asp);