mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
fix DROBPEAR_FUZZ auth delay
--HG-- branch : fuzz
This commit is contained in:
parent
6ac5ea2a9f
commit
4b7105dfea
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user