* fhandler_socket.cc (fhandler_socket::recvmsg): Avoid SEGV in OpenSSH

when trying to pass file descriptor by setting msg->msg_accrightslen
	to 0.
This commit is contained in:
Corinna Vinschen 2005-06-12 12:01:09 +00:00
parent 88cbbd450e
commit 3925b4afc4
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-06-12 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::recvmsg): Avoid SEGV in OpenSSH
when trying to pass file descriptor by setting msg->msg_accrightslen
to 0.
2005-06-11 Christopher Faylor <cgf@timesys.com>
* Makefile.in: Avoid initial heap allocation since cygwin has its own

View File

@ -1063,6 +1063,7 @@ fhandler_socket::recvmsg (struct msghdr *msg, int flags, ssize_t tot)
go ahead recv'ing the normal data blocks. Otherwise start
special handling for descriptor passing. */
/*TODO*/
msg->msg_accrightslen = 0;
}
struct iovec *const iov = msg->msg_iov;