]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Disallow listen() on sockets which are in the SS_ISCONNECTED or
authortmm <tmm@FreeBSD.org>
Fri, 17 Jan 2003 19:20:00 +0000 (19:20 +0000)
committertmm <tmm@FreeBSD.org>
Fri, 17 Jan 2003 19:20:00 +0000 (19:20 +0000)
commit44a87ce9b92bb756504a91bab3f4fef496a80ea0
treee30ebc6ea2b676d55dc3b18621aa19a6066658b7
parent48bc1b69c823ca2bc326a90bc8ab10010bb472a6
Disallow listen() on sockets which are in the SS_ISCONNECTED or
SS_ISCONNECTING state, returning EINVAL (which is what POSIX mandates
in this case).
listen() on connected or connecting sockets would cause them to enter
a bad state; in the TCP case, this could cause sockets to go
catatonic or panics, depending on how the socket was connected.

Reviewed by: -net
MFC after: 2 weeks
sys/kern/uipc_socket.c