Skip to content

Commit

Permalink
Fix regression where TTY modes weren't reset for client
Browse files Browse the repository at this point in the history
  • Loading branch information
mkj committed Mar 24, 2019
1 parent e9231f7 commit 7bc6280
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cli-chansession.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "chansession.h"
#include "agentfwd.h"

static void cli_cleanupchansess(const struct Channel *channel);
static void cli_closechansess(const struct Channel *channel);
static int cli_initchansess(struct Channel *channel);
static void cli_chansessreq(struct Channel *channel);
static void send_chansess_pty_req(const struct Channel *channel);
Expand All @@ -51,8 +51,8 @@ const struct ChanType clichansess = {
cli_initchansess, /* inithandler */
NULL, /* checkclosehandler */
cli_chansessreq, /* reqhandler */
NULL, /* closehandler */
cli_cleanupchansess, /* cleanup */
cli_closechansess, /* closehandler */
NULL, /* cleanup */
};

static void cli_chansessreq(struct Channel *channel) {
Expand Down Expand Up @@ -84,7 +84,7 @@ static void cli_chansessreq(struct Channel *channel) {


/* If the main session goes, we close it up */
static void cli_cleanupchansess(const struct Channel *UNUSED(channel)) {
static void cli_closechansess(const struct Channel *UNUSED(channel)) {
cli_tty_cleanup(); /* Restore tty modes etc */

/* This channel hasn't gone yet, so we have > 1 */
Expand Down Expand Up @@ -388,8 +388,8 @@ static const struct ChanType cli_chan_netcat = {
cli_init_netcat, /* inithandler */
NULL,
NULL,
cli_closechansess,
NULL,
cli_cleanupchansess
};

void cli_send_netcat_request() {
Expand Down

0 comments on commit 7bc6280

Please sign in to comment.