comparison common-session.c @ 1357:08f4fa4dc6a0 fuzz

closer to working
author Matt Johnston <matt@ucc.asn.au>
date Sat, 20 May 2017 13:23:16 +0800
parents 2c9dac2d6707
children 6b89eb92f872
comparison
equal deleted inserted replaced
1356:3677a510f545 1357:08f4fa4dc6a0
159 FD_ZERO(&readfd); 159 FD_ZERO(&readfd);
160 dropbear_assert(ses.payload == NULL); 160 dropbear_assert(ses.payload == NULL);
161 161
162 /* We get woken up when signal handlers write to this pipe. 162 /* We get woken up when signal handlers write to this pipe.
163 SIGCHLD in svr-chansession is the only one currently. */ 163 SIGCHLD in svr-chansession is the only one currently. */
164 FD_SET(ses.signal_pipe[0], &readfd); 164 #ifdef DROPBEAR_FUZZ
165 if (!fuzz.fuzzing)
166 #endif
167 {
168 FD_SET(ses.signal_pipe[0], &readfd);
169 }
165 ses.channel_signal_pending = 0; 170 ses.channel_signal_pending = 0;
166 171
167 /* set up for channels which can be read/written */ 172 /* set up for channels which can be read/written */
168 setchannelfds(&readfd, &writefd, writequeue_has_space); 173 setchannelfds(&readfd, &writefd, writequeue_has_space);
169 174