diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-12 23:14:54 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-12 23:14:54 +0800 |
commit | 9f24cdf74c93aa75416687972e69b5b4c8be2698 (patch) | |
tree | 9de10a9cfb200ced849cce21005253e0b93b7711 /svr-auth.c | |
parent | d7471c4f875a2be9dde4e65d06f71bf7c68d5ff5 (diff) |
copy over some fuzzing code from AFL branch
--HG--
branch : fuzz
Diffstat (limited to 'svr-auth.c')
-rw-r--r-- | svr-auth.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -358,7 +358,11 @@ void send_msg_userauth_failure(int partial, int incrfail) { genrandom((unsigned char*)&delay, sizeof(delay)); /* We delay for 300ms +- 50ms */ delay = 250000 + (delay % 100000); - usleep(delay); +#ifndef DROPBEAR_FUZZ + if (!opts.fuzz.fuzzing) { + usleep(delay); + } +#endif ses.authstate.failcount++; } |