summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2015-10-26 11:46:25 +0000
committerclaudio <claudio@openbsd.org>2015-10-26 11:46:25 +0000
commitc104009271e46b7494aa4bbaae77506cd9fc7796 (patch)
tree39e91afe98b529b5aa24cd0762fc639e47fc3510
parentIf the system call is entirely unpermitted, code will be 0, and there is (diff)
downloadwireguard-openbsd-c104009271e46b7494aa4bbaae77506cd9fc7796.tar.xz
wireguard-openbsd-c104009271e46b7494aa4bbaae77506cd9fc7796.zip
Kernel got fixed we no longer need to check if rtm_pid is 0 to filter out
route messages that are not from us.
-rw-r--r--usr.sbin/ospfd/kroute.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c
index 5878a2558f3..d566b21de66 100644
--- a/usr.sbin/ospfd/kroute.c
+++ b/usr.sbin/ospfd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.104 2015/10/24 16:42:18 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.105 2015/10/26 11:46:25 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -1371,8 +1371,7 @@ rtmsg_process(char *buf, size_t len)
continue;
if (rtm->rtm_type == RTM_GET &&
- rtm->rtm_pid != kr_state.pid &&
- rtm->rtm_pid != 0)
+ rtm->rtm_pid != kr_state.pid)
continue;
if ((sa = rti_info[RTAX_DST]) == NULL)