diff cli-main.c @ 733:70811267715c

Run the cleanup handler also when we close due to TCP connection being closed
author Matt Johnston <matt@ucc.asn.au>
date Mon, 01 Apr 2013 22:26:55 +0800
parents 00eca37e47e8
children 7dcb46da72d9
line wrap: on
line diff
--- a/cli-main.c	Mon Apr 01 22:26:24 2013 +0800
+++ b/cli-main.c	Mon Apr 01 22:26:55 2013 +0800
@@ -98,8 +98,7 @@
 	}
 
 	/* 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);