diff options
author | 2016-09-01 17:00:38 +0000 | |
---|---|---|
committer | 2016-09-01 17:00:38 +0000 | |
commit | 7d4f62d2d54956783d854568f6520fca4fa0f419 (patch) | |
tree | 37de0a26d6a49f0d4646a313b042ed2efa6902e4 | |
parent | Move RTM_GET into its own case block not intermixing it with RTM_CHANGE (diff) | |
download | wireguard-openbsd-7d4f62d2d54956783d854568f6520fca4fa0f419.tar.xz wireguard-openbsd-7d4f62d2d54956783d854568f6520fca4fa0f419.zip |
No longer needed to special case RTM_GET in these if statements since
RTM_GET is no longer sharing this case block.
-rw-r--r-- | sys/net/rtsock.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 7439efe9e4b..ba159f5162c 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.200 2016/09/01 16:53:38 claudio Exp $ */ +/* $OpenBSD: rtsock.c,v 1.201 2016/09/01 17:00:38 claudio Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -757,11 +757,10 @@ report: #ifndef SMALL_KERNEL /* * If we got multipath routes, we require users to specify - * a matching gateway, except for RTM_GET. + * a matching gateway. */ if ((rt != NULL) && ISSET(rt->rt_flags, RTF_MPATH) && - (info.rti_info[RTAX_GATEWAY] == NULL) && - (rtm->rtm_type != RTM_GET)) { + (info.rti_info[RTAX_GATEWAY] == NULL)) { rtfree(rt); rt = NULL; } @@ -793,7 +792,7 @@ report: */ plen = rtable_satoplen(info.rti_info[RTAX_DST]->sa_family, info.rti_info[RTAX_NETMASK]); - if (rtm->rtm_type != RTM_GET && rt_plen(rt) != plen ) { + if (rt_plen(rt) != plen ) { error = ESRCH; goto flush; } |