diff 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
line wrap: on
line diff
--- a/svr-auth.c	Sun Jun 25 23:22:11 2017 +0800
+++ b/svr-auth.c	Sun Jun 25 23:37:44 2017 +0800
@@ -362,7 +362,7 @@
 		ses.authstate.failcount++;
 	}
 
-	if (ses.authstate.failcount >= MAX_AUTH_TRIES) {
+	if (ses.authstate.failcount >= svr_opts.maxauthtries) {
 		char * userstr;
 		/* XXX - send disconnect ? */
 		TRACE(("Max auth tries reached, exiting"))