fix DROBPEAR_FUZZ auth delay

--HG--
branch : fuzz
This commit is contained in:
Matt Johnston 2017-06-30 21:10:57 +08:00
parent 6ac5ea2a9f
commit 4b7105dfea

View File

@ -358,10 +358,12 @@ void send_msg_userauth_failure(int partial, int incrfail) {
genrandom((unsigned char*)&delay, sizeof(delay));
/* We delay for 300ms +- 50ms */
delay = 250000 + (delay % 100000);
#ifndef DROPBEAR_FUZZ
#ifdef DROPBEAR_FUZZ
if (!fuzz.fuzzing) {
usleep(delay);
}
#else
usleep(delay);
#endif
ses.authstate.failcount++;
}