comparison svr-auth.c @ 1562:768ebf737aa0 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Feb 2018 22:11:39 +0800
parents 02b226c2675e f5026f7486de
children 1fbe598a14fb
comparison
equal deleted inserted replaced
1561:02b226c2675e 1562:768ebf737aa0
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 315 #endif /* HAVE_GETGROUPLIST */
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;
397 delay = 250000 + (delay % 100000); 397 delay = 250000 + (delay % 100000);
398 #if DROPBEAR_FUZZ 398 #if DROPBEAR_FUZZ
399 if (!fuzz.fuzzing) 399 if (!fuzz.fuzzing)
400 #endif 400 #endif
401 { 401 {
402 usleep(delay); 402 usleep(delay);
403 } 403 }
404 ses.authstate.failcount++; 404 ses.authstate.failcount++;
405 } 405 }
406 406
407 if (ses.authstate.failcount >= svr_opts.maxauthtries) { 407 if (ses.authstate.failcount >= svr_opts.maxauthtries) {