* fhandler_socket.cc (fhandler_socket::af_local_connect): Drop

setting connect_state to connect_credxchg.
	(fhandler_socket::af_local_accept): Ditto.
	(fhandler_socket::recv_internal): Drop ill-advised connect_state check.
	Add comment so as not to repeat the exercise.
	* fhandler.h (enum conn_state): Drop now unneeded connect_credxchg
	state.
This commit is contained in:
Corinna Vinschen
2014-10-26 18:47:24 +00:00
parent 1fc5d69923
commit b701da7f14
4 changed files with 21 additions and 23 deletions

View File

@@ -68,8 +68,7 @@ Bug Fixes
Addresses: https://cygwin.com/ml/cygwin-developers/2014-10/msg00010.html
- Don't hang in accept calls if socket is no listener. Set errno to EINVAL
instead. Don't hang in read/recv/recvfrom/recvmsg calls if socket is
connection oriented and not connected. Set errno to ENOTCONN instead.
instead.
- Don't allow seeking on serial lines and sockets. Set errno to ESPIPE
instead.