[5346] in bugtraq

home help back first fref pref prev next nref lref last post

Re: TCPwrappers race condition

daemon@ATHENA.MIT.EDU (Wietse Venema)
Sat Oct 4 13:47:47 1997

Date: 	Fri, 3 Oct 1997 19:24:36 -0400
Reply-To: Wietse Venema <wietse@WZV.WIN.TUE.NL>
From: Wietse Venema <wietse@WZV.WIN.TUE.NL>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To:  <Pine.SCO.3.96.971003215903.1573A-100000@jwt> from "John W.
              Temples" at "Oct 3, 97 11:06:50 pm"

Wietse Venema:
> Although the time window can be made *smaller* by using results
> from accept() instead of getpeername(), the time window can be
> eliminated only by changing the kernel so that it does not destroy
> the protocol control block when the connection is reset by the
> peer.

John W. Temples:
> If accept() does return without an error, why would you not have
> the address? Thus where is the time window?

The time window is with the other returns from accept().  Ignoring
error returns from accept() does not solve the problem.

        Wietse

home help back first fref pref prev next nref lref last post