summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2016-09-01 17:00:39 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2016-09-01 17:00:39 +0000
commit9716f6db9210dbc2f121aa0c0184ae756e5f9a56 (patch)
tree92817b46a60e99f1db23f4c4b13adfd7f7e2661f
parente0cd6c92a66ca1e94b6eeb64ed37055714f8fad4 (diff)
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.c9
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;
}