summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ripd/kroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ripd/kroute.c b/usr.sbin/ripd/kroute.c
index cce31b3c755..014f9286c70 100644
--- a/usr.sbin/ripd/kroute.c
+++ b/usr.sbin/ripd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.20 2009/09/26 18:24:58 michele Exp $ */
+/* $OpenBSD: kroute.c,v 1.21 2010/01/02 14:40:54 michele Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -944,7 +944,7 @@ fetchtable(void)
break;
}
- if (rtm->rtm_priority & RTP_RIP) {
+ if (rtm->rtm_priority == RTP_RIP) {
send_rtmsg(kr_state.fd, RTM_DELETE, &kr->r);
free(kr);
} else {