summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2009-01-06 22:00:31 +0000
committerclaudio <claudio@openbsd.org>2009-01-06 22:00:31 +0000
commitdb336720d398a4277b449775223092f07be86f10 (patch)
tree8df275267a8480014cb4ed4b7243c243654cab73
parentAlways check rs_malloc() returns. Also add M_ZERO and M_CANFAIL (diff)
downloadwireguard-openbsd-db336720d398a4277b449775223092f07be86f10.tar.xz
wireguard-openbsd-db336720d398a4277b449775223092f07be86f10.zip
Remove workaround added in rev 1.63. The real issue has been found and
fixed and the bandaid is no longer needed. See rev. 1.26 of sys/net/radix.c
-rw-r--r--usr.sbin/ospfd/kroute.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c
index 8ba2f1b8e0c..4d280fa1f4e 100644
--- a/usr.sbin/ospfd/kroute.c
+++ b/usr.sbin/ospfd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.64 2009/01/01 20:40:10 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.65 2009/01/06 22:00:31 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -1016,7 +1016,6 @@ if_announce(void *msg)
int
send_rtmsg(int fd, int action, struct kroute *kroute)
{
- struct kroute_node *rn;
struct iovec iov[5];
struct rt_msghdr hdr;
struct sockaddr_in prefix;
@@ -1029,11 +1028,6 @@ send_rtmsg(int fd, int action, struct kroute *kroute)
if (kr_state.fib_sync == 0)
return (0);
- /* XXX workaround for bug with CLONING routes */
- rn = kroute_find(kroute->prefix.s_addr, kroute->prefixlen, RTP_ANY);
- if (rn && rn->r.priority < RTP_STATIC)
- return (0);
-
/* initialize header */
bzero(&hdr, sizeof(hdr));
hdr.rtm_version = RTM_VERSION;