comparison common-session.c @ 1050:c2a50c9f509e fastopen

Add cleanup
author Matt Johnston <matt@ucc.asn.au>
date Sat, 28 Feb 2015 23:15:23 +0800
parents 01eea88963f3
children 4c733310c21d
comparison
equal deleted inserted replaced
1049:01eea88963f3 1050:c2a50c9f509e
279 #ifdef DROPBEAR_CLEANUP 279 #ifdef DROPBEAR_CLEANUP
280 /* listeners call cleanup functions, this should occur before 280 /* listeners call cleanup functions, this should occur before
281 other session state is freed. */ 281 other session state is freed. */
282 remove_all_listeners(); 282 remove_all_listeners();
283 283
284 remove_connect_pending();
285
284 while (!isempty(&ses.writequeue)) { 286 while (!isempty(&ses.writequeue)) {
285 buf_free(dequeue(&ses.writequeue)); 287 buf_free(dequeue(&ses.writequeue));
286 } 288 }
287 289
288 m_free(ses.remoteident); 290 m_free(ses.remoteident);