diff options
author | 2010-01-02 14:40:54 +0000 | |
---|---|---|
committer | 2010-01-02 14:40:54 +0000 | |
commit | a7505ebc6bec237168efbe7fe784ee5a5655d6fb (patch) | |
tree | 513f4f373df0db8dd3964b06436acb70a13c3512 /usr.sbin/ripd/kroute.c | |
parent | next step: create proxy objects for devices that count the size used. (diff) | |
download | wireguard-openbsd-a7505ebc6bec237168efbe7fe784ee5a5655d6fb.tar.xz wireguard-openbsd-a7505ebc6bec237168efbe7fe784ee5a5655d6fb.zip |
Fix comparison between the routing message's priority and RTP_RIP.
ok claudio@
Diffstat (limited to 'usr.sbin/ripd/kroute.c')
-rw-r--r-- | usr.sbin/ripd/kroute.c | 4 |
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 { |