diff options
Diffstat (limited to 'cli-chansession.c')
-rw-r--r-- | cli-chansession.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index a8363ac..6d358b7 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -340,10 +340,10 @@ static void send_chansess_shell_req(struct Channel *channel) { static int cli_initchansess(struct Channel *channel) { - channel->infd = STDOUT_FILENO; + channel->writefd = STDOUT_FILENO; setnonblocking(STDOUT_FILENO); - channel->outfd = STDIN_FILENO; + channel->readfd = STDIN_FILENO; setnonblocking(STDIN_FILENO); channel->errfd = STDERR_FILENO; |