From ec566f2903ddb204aef6172ed800c7654e8b91c5 Mon Sep 17 00:00:00 2001 From: Erwin Hoffmann Date: Thu, 5 Oct 2023 17:29:11 +0200 Subject: authenticate does not fault in case of wrong auth args --- src/authenticate.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/authenticate.cc b/src/authenticate.cc index a448238..bdd18c9 100644 --- a/src/authenticate.cc +++ b/src/authenticate.cc @@ -344,7 +344,8 @@ int Binc::authenticate(Depot &depot, const string &username, << " <" << username << "> authentication failed: " << (authenticated ? "authenticator" : "server") << " reports wrong usage" << endl; - return -1; + sleep(AUTH_PENALTY); + return 2; default: // internal error -- or authenticator fooled us bincLog << "bincimap-up: pid " << pid -- cgit v1.2.3