Skip to content
Snippets Groups Projects
Commit cb52cf97 authored by Niels Möller's avatar Niels Möller
Browse files

* src/ssh1_fallback.c (fall_back_to_ssh1): Reset the fd to

blocking mode. XXX Fix in 1.2 branch.

Rev: src/ssh1_fallback.c:1.11
parent 5dc4e9ed
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,9 @@ fall_back_to_ssh1(struct ssh1_fallback *c,
* So all we have to do is to dup the socket fd to stdin
* and stdout. */
/* Reset the fd to blocking mode. */
io_set_blocking(fd);
if (dup2(fd, STDIN_FILENO) < 0)
{
werror("lshd: fall_back_to_ssh1: Failed to dup socket to STDIN.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment