# HG changeset patch # User Matt Johnston # Date 1498828257 -28800 # Node ID ea150e3e95a6a8d59cfdbb8dfb571a27bfb95775 # Parent 871b18fd706598b2081c43b4872ccbecacfee9c1 fix DROBPEAR_FUZZ auth delay diff -r 871b18fd7065 -r ea150e3e95a6 svr-auth.c --- a/svr-auth.c Sat Jun 24 22:51:45 2017 +0800 +++ b/svr-auth.c Fri Jun 30 21:10:57 2017 +0800 @@ -358,10 +358,12 @@ 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++; }