diff options
author | 2006-07-03 13:05:02 +0000 | |
---|---|---|
committer | 2006-07-03 13:05:02 +0000 | |
commit | 275b428f17792b7865b7cfd7a5e0aad4c7186916 (patch) | |
tree | aa4d7ccc0829aa2d07834851f13412365655166e | |
parent | also print vp in vprint (useful for debugging); pedro@ ok (diff) | |
download | wireguard-openbsd-275b428f17792b7865b7cfd7a5e0aad4c7186916.tar.xz wireguard-openbsd-275b428f17792b7865b7cfd7a5e0aad4c7186916.zip |
Add missing breaks and suddenly all starts to make sense again. Wondered
why one of my boxes started to redistribute all my bgpd routes into ospf.
-rw-r--r-- | usr.sbin/ospfd/ospfd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c index 472fbc79e08..76a2213c610 100644 --- a/usr.sbin/ospfd/ospfd.c +++ b/usr.sbin/ospfd/ospfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfd.c,v 1.33 2006/05/31 03:24:06 claudio Exp $ */ +/* $OpenBSD: ospfd.c,v 1.34 2006/07/03 13:05:02 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -515,11 +515,13 @@ ospf_redistribute(struct kroute *kr) continue; if (kr->flags & F_STATIC) return (r->type & REDIST_NO ? 0 : 1); + break; case REDIST_CONNECTED: if (kr->flags & F_DYNAMIC) continue; if (kr->flags & F_CONNECTED) return (r->type & REDIST_NO ? 0 : 1); + break; case REDIST_ADDR: if (kr->flags & F_DYNAMIC) continue; |