comparison common-session.c @ 1295:750ec4ec4cbe

Convert #ifdef to #if, other build changes
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 May 2016 15:33:40 +0200
parents 432b0a030fd6
children 2c9dac2d6707
comparison
equal deleted inserted replaced
1294:56aba7dedbea 1295:750ec4ec4cbe
52 52
53 /* called only at the start of a session, set up initial state */ 53 /* called only at the start of a session, set up initial state */
54 void common_session_init(int sock_in, int sock_out) { 54 void common_session_init(int sock_in, int sock_out) {
55 time_t now; 55 time_t now;
56 56
57 #ifdef DEBUG_TRACE 57 #if DEBUG_TRACE
58 debug_start_net(); 58 debug_start_net();
59 #endif 59 #endif
60 60
61 TRACE(("enter session_init")) 61 TRACE(("enter session_init"))
62 62
293 if (ses.extra_session_cleanup) { 293 if (ses.extra_session_cleanup) {
294 ses.extra_session_cleanup(); 294 ses.extra_session_cleanup();
295 } 295 }
296 296
297 /* After these are freed most functions will fail */ 297 /* After these are freed most functions will fail */
298 #ifdef DROPBEAR_CLEANUP 298 #if DROPBEAR_CLEANUP
299 /* listeners call cleanup functions, this should occur before 299 /* listeners call cleanup functions, this should occur before
300 other session state is freed. */ 300 other session state is freed. */
301 remove_all_listeners(); 301 remove_all_listeners();
302 302
303 remove_connect_pending(); 303 remove_connect_pending();