comparison svr-auth.c @ 1443:8d45904926d3

Merge pull request #47 from kdarbyshirebryant/mastermaxauth dropbear server: support -T max auth tries
author Matt Johnston <matt@ucc.asn.au>
date Sun, 25 Jun 2017 23:37:44 +0800
parents 517c67cbcd31
children 4afde04f0607 06d52bcb8094
comparison
equal deleted inserted replaced
1441:93d2bf610d0b 1443:8d45904926d3
360 delay = 250000 + (delay % 100000); 360 delay = 250000 + (delay % 100000);
361 usleep(delay); 361 usleep(delay);
362 ses.authstate.failcount++; 362 ses.authstate.failcount++;
363 } 363 }
364 364
365 if (ses.authstate.failcount >= MAX_AUTH_TRIES) { 365 if (ses.authstate.failcount >= svr_opts.maxauthtries) {
366 char * userstr; 366 char * userstr;
367 /* XXX - send disconnect ? */ 367 /* XXX - send disconnect ? */
368 TRACE(("Max auth tries reached, exiting")) 368 TRACE(("Max auth tries reached, exiting"))
369 369
370 if (ses.authstate.pw_name == NULL) { 370 if (ses.authstate.pw_name == NULL) {