From d8f2acbc1a23de8719fdc9655ca286e545dbc449 Mon Sep 17 00:00:00 2001 From: mpi Date: Sun, 10 Dec 2017 11:25:18 +0000 Subject: [PATCH] Remove outdated comment and trailing spaces. From kshe59@zoho.eu --- sys/net/rtsock.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index ba253a30ab9..e3eda412388 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.255 2017/11/03 16:23:20 florian Exp $ */ +/* $OpenBSD: rtsock.c,v 1.256 2017/12/10 11:25:18 mpi Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -224,7 +224,7 @@ route_attach(struct socket *so, int proto) if (curproc == NULL) error = EACCES; - else + else error = soreserve(so, RAWSNDQ, RAWRCVQ); if (error) { free(rop, M_PCB, sizeof(struct routecb)); @@ -693,12 +693,6 @@ route_output(struct mbuf *m, struct socket *so, struct sockaddr *dstaddr, info.rti_flags |= RTF_LLINFO; } - /* - * Do not use goto flush before this point since the message itself - * may be not consistent and could cause unexpected behaviour in other - * userland clients. Use goto fail instead. - */ - /* * Validate RTM_PROPOSAL and pass it along or error out. */ @@ -897,7 +891,7 @@ rtm_output(struct rt_msghdr *rtm, struct rtentry **prt, */ plen = rtable_satoplen(info->rti_info[RTAX_DST]->sa_family, info->rti_info[RTAX_NETMASK]); - if (rt_plen(rt) != plen ) { + if (rt_plen(rt) != plen) { error = ESRCH; break; } -- 2.20.1