summaryrefslogtreecommitdiff
path: root/svr-auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-auth.c')
-rw-r--r--svr-auth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/svr-auth.c b/svr-auth.c
index 9636e12..f1ba957 100644
--- a/svr-auth.c
+++ b/svr-auth.c
@@ -358,7 +358,13 @@ void send_msg_userauth_failure(int partial, int incrfail) {
genrandom((unsigned char*)&delay, sizeof(delay));
/* We delay for 300ms +- 50ms */
delay = 250000 + (delay % 100000);
+#ifdef DROPBEAR_FUZZ
+ if (!fuzz.fuzzing) {
+ usleep(delay);
+ }
+#else
usleep(delay);
+#endif
ses.authstate.failcount++;
}