diff options
author | tmm <tmm@FreeBSD.org> | 2003-01-17 19:20:00 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2003-01-17 19:20:00 +0000 |
commit | 44a87ce9b92bb756504a91bab3f4fef496a80ea0 (patch) | |
tree | e30ebc6ea2b676d55dc3b18621aa19a6066658b7 /lib/libc/rpc/auth_unix.c | |
parent | 48bc1b69c823ca2bc326a90bc8ab10010bb472a6 (diff) | |
download | FreeBSD-src-44a87ce9b92bb756504a91bab3f4fef496a80ea0.zip FreeBSD-src-44a87ce9b92bb756504a91bab3f4fef496a80ea0.tar.gz |
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
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
0 files changed, 0 insertions, 0 deletions