Mercurial > dropbear
comparison svr-session.c @ 1041:3fb883a6aa81
Some additional cleanup functions
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 24 Feb 2015 22:17:04 +0800 |
parents | 2b4fd440399d |
children | 2fa71c3b2827 8e0280986710 |
comparison
equal
deleted
inserted
replaced
1040:2b4fd440399d | 1041:3fb883a6aa81 |
---|---|
81 svr_session_cleanup(void) { | 81 svr_session_cleanup(void) { |
82 /* free potential public key options */ | 82 /* free potential public key options */ |
83 svr_pubkey_options_cleanup(); | 83 svr_pubkey_options_cleanup(); |
84 | 84 |
85 m_free(svr_ses.addrstring); | 85 m_free(svr_ses.addrstring); |
86 m_free(svr_ses.remotehost); | |
86 m_free(svr_ses.childpids); | 87 m_free(svr_ses.childpids); |
87 m_free(svr_ses.remotehost); | 88 svr_ses.childpidsize = 0; |
88 } | 89 } |
89 | 90 |
90 static void | 91 static void |
91 svr_sessionloop() { | 92 svr_sessionloop() { |
92 if (svr_ses.connect_time != 0 | 93 if (svr_ses.connect_time != 0 |