diff svr-auth.c @ 1449:ea150e3e95a6 fuzz

fix DROBPEAR_FUZZ auth delay
author Matt Johnston <matt@ucc.asn.au>
date Fri, 30 Jun 2017 21:10:57 +0800
parents 3fdd8c5a0195
children 4afde04f0607
line wrap: on
line diff
--- 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++;
 	}