summaryrefslogtreecommitdiff
path: root/cli-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-01 22:26:55 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-01 22:26:55 +0800
commit655d681bebbb289537d69212805b62df471ea32d (patch)
tree6eda9b6d26051993d7bbeab1674aeb28a629c919 /cli-main.c
parenteeac5d9ac16a93e7ff4e334fcab95d32eb136ff1 (diff)
downloaddropbear-655d681bebbb289537d69212805b62df471ea32d.tar.gz
Run the cleanup handler also when we close due to TCP connection being closed
Diffstat (limited to 'cli-main.c')
-rw-r--r--cli-main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli-main.c b/cli-main.c
index 5f72969..1a8b02e 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -98,8 +98,7 @@ static void cli_dropbear_exit(int exitcode, const char* format, va_list param) {
}
/* Do the cleanup first, since then the terminal will be reset */
- cli_session_cleanup();
- common_session_cleanup();
+ session_cleanup();
_dropbear_log(LOG_INFO, fmtbuf, param);