comparison svr-auth.c @ 1561:02b226c2675e fuzz

clean some fuzzing conditionals
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Feb 2018 22:10:43 +0800
parents 2f64cb3d3007
children 768ebf737aa0
comparison
equal deleted inserted replaced
1559:92c93b4a3646 1561:02b226c2675e
394 unsigned int delay; 394 unsigned int delay;
395 genrandom((unsigned char*)&delay, sizeof(delay)); 395 genrandom((unsigned char*)&delay, sizeof(delay));
396 /* We delay for 300ms +- 50ms */ 396 /* We delay for 300ms +- 50ms */
397 delay = 250000 + (delay % 100000); 397 delay = 250000 + (delay % 100000);
398 #if DROPBEAR_FUZZ 398 #if DROPBEAR_FUZZ
399 if (!fuzz.fuzzing) { 399 if (!fuzz.fuzzing)
400 #endif
401 {
400 usleep(delay); 402 usleep(delay);
401 } 403 }
402 #else
403 usleep(delay);
404 #endif
405 ses.authstate.failcount++; 404 ses.authstate.failcount++;
406 } 405 }
407 406
408 if (ses.authstate.failcount >= svr_opts.maxauthtries) { 407 if (ses.authstate.failcount >= svr_opts.maxauthtries) {
409 char * userstr; 408 char * userstr;