From 90b5691183f12d348d2651e026e8438ad278c2be Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 1 Apr 2013 22:26:55 +0800 Subject: Run the cleanup handler also when we close due to TCP connection being closed --- cli-main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli-main.c') 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); -- cgit v1.2.3