Date: Thu, 08 Feb 2001 10:13:40 +0900 From: itojun@iijlab.net To: Jonathan Lemon <jlemon@flugsvamp.com> Cc: kris@obsecurity.org, net@freebsd.org Subject: Re: [itojun@iijlab.net: accept(2) behavior with tcp RST right after handshake] Message-ID: <9384.981594820@coconut.itojun.org> In-Reply-To: jlemon's message of Wed, 07 Feb 2001 14:28:47 CST. <200102072028.f17KSlL77553@prism.flugsvamp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>Looks good to me (although the patch is mixed in with a bunch >of other crud). I've tested it out locally and will commit it >unless there are any objections. it is because of cvs issue. the important portion is below. itojun @@ -320,11 +359,8 @@ soaccept(so, nam) so->so_state &= ~SS_NOFDREF; if ((so->so_state & SS_ISDISCONNECTED) == 0) error = (*so->so_proto->pr_usrreqs->pru_accept)(so, nam); - else { - if (nam) - *nam = 0; - error = 0; - } + else + error = ECONNABORTED; splx(s); return (error); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9384.981594820>