* 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:
parent
88cbbd450e
commit
3925b4afc4
@ -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>
|
2005-06-11 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* Makefile.in: Avoid initial heap allocation since cygwin has its own
|
* Makefile.in: Avoid initial heap allocation since cygwin has its own
|
||||||
|
@ -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
|
go ahead recv'ing the normal data blocks. Otherwise start
|
||||||
special handling for descriptor passing. */
|
special handling for descriptor passing. */
|
||||||
/*TODO*/
|
/*TODO*/
|
||||||
|
msg->msg_accrightslen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct iovec *const iov = msg->msg_iov;
|
struct iovec *const iov = msg->msg_iov;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user