diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-01-09 16:00:49 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-01-09 16:00:49 +0000 |
commit | 84d6f920fda39d036cb3526bd9ce457032191ab0 (patch) | |
tree | e9f09fab11db177c585c3f181fe6f0130179f825 /usr.sbin/bgpd | |
parent | fb4205421dd06345cb985ab4252728fdb3a7a304 (diff) |
Ups. Inverse logic.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 4 |
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); |