Commit cb52cf97 authored by Niels Möller's avatar Niels Möller

* 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
......@@ -77,7 +77,10 @@ fall_back_to_ssh1(struct ssh1_fallback *c,
/* NOTE: All fds should have the close-on-exec flag set.
* So all we have to do is to dup the socket fd to stdin
* and stdout. */
/* Reset the fd to blocking mode. */
if (dup2(fd, STDIN_FILENO) < 0)
werror("lshd: fall_back_to_ssh1: Failed to dup socket to STDIN.\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment