Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
732:2e5f2bc60e40 | 733:70811267715c |
---|---|
96 cli_opts.username, cli_opts.remotehost, | 96 cli_opts.username, cli_opts.remotehost, |
97 cli_opts.remoteport, format); | 97 cli_opts.remoteport, format); |
98 } | 98 } |
99 | 99 |
100 /* Do the cleanup first, since then the terminal will be reset */ | 100 /* Do the cleanup first, since then the terminal will be reset */ |
101 cli_session_cleanup(); | 101 session_cleanup(); |
102 common_session_cleanup(); | |
103 | 102 |
104 _dropbear_log(LOG_INFO, fmtbuf, param); | 103 _dropbear_log(LOG_INFO, fmtbuf, param); |
105 | 104 |
106 exit(exitcode); | 105 exit(exitcode); |
107 } | 106 } |