comparison svr-auth.c @ 1558:2f64cb3d3007 fuzz

- #if not #ifdef for DROPBEAR_FUZZ - fix some unused variables
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Feb 2018 21:40:08 +0800
parents 61a793b6e471
children 02b226c2675e
comparison
equal deleted inserted replaced
1557:61a793b6e471 1558:2f64cb3d3007
310 svr_opts.restrict_group, ses.authstate.pw_name); 310 svr_opts.restrict_group, ses.authstate.pw_name);
311 ses.authstate.checkusername_failed = 1; 311 ses.authstate.checkusername_failed = 1;
312 return DROPBEAR_FAILURE; 312 return DROPBEAR_FAILURE;
313 } 313 }
314 } 314 }
315 #endif HAVE_GETGROUPLIST 315 #endif
316 316
317 TRACE(("shell is %s", ses.authstate.pw_shell)) 317 TRACE(("shell is %s", ses.authstate.pw_shell))
318 318
319 /* check that the shell is set */ 319 /* check that the shell is set */
320 usershell = ses.authstate.pw_shell; 320 usershell = ses.authstate.pw_shell;
393 if (incrfail) { 393 if (incrfail) {
394 unsigned int delay; 394 unsigned int delay;
395 genrandom((unsigned char*)&delay, sizeof(delay)); 395 genrandom((unsigned char*)&delay, sizeof(delay));
396 /* We delay for 300ms +- 50ms */ 396 /* We delay for 300ms +- 50ms */
397 delay = 250000 + (delay % 100000); 397 delay = 250000 + (delay % 100000);
398 #ifdef DROPBEAR_FUZZ 398 #if DROPBEAR_FUZZ
399 if (!fuzz.fuzzing) { 399 if (!fuzz.fuzzing) {
400 usleep(delay); 400 usleep(delay);
401 } 401 }
402 #else 402 #else
403 usleep(delay); 403 usleep(delay);