diff options
author | Erwin Hoffmann <feh@fehcom.de> | 2023-10-05 17:29:11 +0200 |
---|---|---|
committer | Erwin Hoffmann <feh@fehcom.de> | 2023-10-05 17:29:11 +0200 |
commit | ec566f2903ddb204aef6172ed800c7654e8b91c5 (patch) | |
tree | be612e74a2e426c08dd6c46c6210127ee32026cc | |
parent | c70dba0ed2330eaea1b48bdf66408b393d8d014b (diff) |
authenticate does not fault in case of wrong auth args
-rw-r--r-- | src/authenticate.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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 |