mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +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));
|
genrandom((unsigned char*)&delay, sizeof(delay));
|
||||||
/* We delay for 300ms +- 50ms */
|
/* We delay for 300ms +- 50ms */
|
||||||
delay = 250000 + (delay % 100000);
|
delay = 250000 + (delay % 100000);
|
||||||
#ifndef DROPBEAR_FUZZ
|
#ifdef DROPBEAR_FUZZ
|
||||||
if (!fuzz.fuzzing) {
|
if (!fuzz.fuzzing) {
|
||||||
usleep(delay);
|
usleep(delay);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
usleep(delay);
|
||||||
#endif
|
#endif
|
||||||
ses.authstate.failcount++;
|
ses.authstate.failcount++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user