summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-01-18 11:03:17 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-01-18 11:03:17 +0000
commit69ab2773c265c577bf240cdbf2257ebcf97e6dc6 (patch)
tree43218c963ac6e600b07c5d834153cd3420ad79c0 /sys/netinet/ip_output.c
parentc1b507b9e100f5f3734586a23382d7dd5ac24244 (diff)
Move the rtable_exists() check into in_pcbset_rtableid().
OK bluhm@ mvs@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 87cf83c8171..761d063dc21 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.392 2023/12/01 15:30:47 bluhm Exp $ */
+/* $OpenBSD: ip_output.c,v 1.393 2024/01/18 11:03:16 claudio Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -1077,11 +1077,6 @@ ip_ctloutput(int op, struct socket *so, int level, int optname,
if (rtableid != rtid && rtableid != 0 &&
(error = suser(p)) != 0)
break;
- /* table must exist */
- if (!rtable_exists(rtid)) {
- error = EINVAL;
- break;
- }
error = in_pcbset_rtableid(inp, rtid);
break;
case IP_PIPEX: