Commit 4d430cd2 authored by Niels Möller's avatar Niels Möller

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

blocking mode.

Rev: src/ssh1_fallback.c:
parent 18fc6d5c
......@@ -23,6 +23,7 @@
#include "ssh1_fallback.h"
#include "io.h"
#include "ssh.h"
#include "werror.h"
#include "xalloc.h"
......@@ -77,7 +78,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