Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2001 18:34:29 -0800 (PST)
From:      Archie Cobbs <archie@dellroad.org>
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:  <200102130234.SAA73072@curve.dellroad.org>
In-Reply-To: <20010212194058.A1479@prism.flugsvamp.com> "from Jonathan Lemon at Feb 12, 2001 07:40:58 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Jonathan Lemon writes:
> It seems to me that the odds of an application being able to correctly
> handle an error return from accept() are far greater than the odds that
> the code  correctly checks 'len' upon return from accept.  This, combined
> with the standard, seems to be rationale enough to make the change.

True.. but even greater still are the chances that an application will
correctly handle accept() returning a *real* sockaddr that corresponds
to an already closed connection.

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com


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?200102130234.SAA73072>