comparison common-session.c @ 1558:2f64cb3d3007 fuzz

- #if not #ifdef for DROPBEAR_FUZZ - fix some unused variables
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Feb 2018 21:40:08 +0800
parents bb8eaa26bc93
children 399d8eb961b5
comparison
equal deleted inserted replaced
1557:61a793b6e471 1558:2f64cb3d3007
73 ses.last_packet_time_keepalive_recv = now; 73 ses.last_packet_time_keepalive_recv = now;
74 ses.last_packet_time_idle = now; 74 ses.last_packet_time_idle = now;
75 ses.last_packet_time_any_sent = 0; 75 ses.last_packet_time_any_sent = 0;
76 ses.last_packet_time_keepalive_sent = 0; 76 ses.last_packet_time_keepalive_sent = 0;
77 77
78 #ifdef DROPBEAR_FUZZ 78 #if DROPBEAR_FUZZ
79 if (!fuzz.fuzzing) 79 if (!fuzz.fuzzing)
80 #endif 80 #endif
81 { 81 {
82 if (pipe(ses.signal_pipe) < 0) { 82 if (pipe(ses.signal_pipe) < 0) {
83 dropbear_exit("Signal pipe failed"); 83 dropbear_exit("Signal pipe failed");
156 FD_ZERO(&readfd); 156 FD_ZERO(&readfd);
157 dropbear_assert(ses.payload == NULL); 157 dropbear_assert(ses.payload == NULL);
158 158
159 /* We get woken up when signal handlers write to this pipe. 159 /* We get woken up when signal handlers write to this pipe.
160 SIGCHLD in svr-chansession is the only one currently. */ 160 SIGCHLD in svr-chansession is the only one currently. */
161 #ifdef DROPBEAR_FUZZ 161 #if DROPBEAR_FUZZ
162 if (!fuzz.fuzzing) 162 if (!fuzz.fuzzing)
163 #endif 163 #endif
164 { 164 {
165 FD_SET(ses.signal_pipe[0], &readfd); 165 FD_SET(ses.signal_pipe[0], &readfd);
166 } 166 }