diff options
author | Joerg Goltermann <gollo@cvs.openbsd.org> | 2009-01-16 20:50:14 +0000 |
---|---|---|
committer | Joerg Goltermann <gollo@cvs.openbsd.org> | 2009-01-16 20:50:14 +0000 |
commit | efbc35a73268753d223e46df23451e11b363c6fa (patch) | |
tree | 09607f48d65c765773b95da04ebf144fca05bbe7 /usr.sbin/ospfd | |
parent | d791dc29c20f0eabf50e07f9e7dce3a96d591db9 (diff) |
fix last update
OK claudio@ henning@
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index be184c34365..f9b0257f7bd 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.66 2009/01/08 19:27:56 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.67 2009/01/16 20:50:13 gollo Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -187,16 +187,17 @@ kr_change_fib(struct kroute_node *kr, struct kroute *kroute, int krcount, break; } nkn = kn->next; - if (i == krcount) + if (i == krcount) { /* stale route */ if (kr_delete_fib(kn) == -1) log_warnx("kr_delete_fib failed"); - /* - * if head element was removed we need to adjust - * the head - */ - if (kr == kn) - kr = nkn; + /* + * if head element was removed we need to adjust + * the head + */ + if (kr == kn) + kr = nkn; + } } } |