diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-12-10 11:25:19 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-12-10 11:25:19 +0000 |
commit | 7550ad5cec622b9148c236f1c71852841a0c50f2 (patch) | |
tree | 8ff8bcd03e637773a6c46d6ef925fb8a7a3c9103 /sys | |
parent | 125039ea3c020495ecec92cd5ca387dc3fcea32a (diff) |
Remove outdated comment and trailing spaces.
From kshe59@zoho.eu
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/rtsock.c | 12 |
1 files 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)); @@ -694,12 +694,6 @@ route_output(struct mbuf *m, struct socket *so, struct sockaddr *dstaddr, } /* - * 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. */ if (rtm->rtm_type == RTM_PROPOSAL) { @@ -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; } |