summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-07-03 13:05:03 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-07-03 13:05:03 +0000
commitd1852cdb6ba4cf691a2ef19bddf4afbb9797e4e3 (patch)
tree62723cbe90e2ebf0c4a6abb1b0f280d5b3bcabd3
parent565efd6e76f94a245f10e96e5b71dea6ddae8e8c (diff)
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.c4
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;