diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-03-26 12:46:53 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-03-26 12:46:53 +0000 |
commit | ccb22c29a93dc9e471a9543e4b6bd1d37df72ad9 (patch) | |
tree | ed16385f23764be68120b6918b0c0c366bf0adec /usr.sbin/bgpd/rde_rib.c | |
parent | 93f1210dc0b017039f75ebadf134809b2b868020 (diff) |
Move the path_empty()/path_destroy() check out of the inner for-loop.
Makes the code more obvious. Idea from tedu@ OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index ea3295164d2..b45f4e4aa5e 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.64 2005/03/11 12:54:20 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.65 2005/03/26 12:46:52 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -585,10 +585,10 @@ prefix_network_clean(struct rde_peer *peer, time_t reloadtime) if (pt_empty(pte)) pt_remove(pte); - if (path_empty(asp)) - path_destroy(asp); } } + if (path_empty(asp)) + path_destroy(asp); } } |