changeset 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 871b18fd7065
children 5b25d86b865b
files svr-auth.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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++;
 	}