diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-06-26 21:07:34 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-06-26 21:07:34 +0800 |
commit | 71b4ec569cb33a5dcd4abf50650ccd78e6d3b2dd (patch) | |
tree | 497adde943fd41206f8d263131b255dda1833ca1 /cli-chansession.c | |
parent | 3187f27fcd533b8d16feebba9090007c82725eff (diff) | |
parent | eaf9be05d7d9de22f2ff936882874331fc2d1a0e (diff) | |
download | dropbear-coverity.tar.gz |
merge coverity from maincoverity
Diffstat (limited to 'cli-chansession.c')
-rw-r--r-- | cli-chansession.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index 8b72e27..cfd3401 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -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); @@ -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) { @@ -84,7 +84,7 @@ out: /* 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 */ @@ -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() { |