Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3256:c18ab708f71c HEAD
Auth workers weren't working correctly with more than one passdb/userdb.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 03 Apr 2005 00:20:38 +0300 |
parents | c29326c157da |
children | 92c16e82b806 |
files | src/auth/auth-worker-client.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-worker-client.c Sun Apr 03 00:12:28 2005 +0300 +++ b/src/auth/auth-worker-client.c Sun Apr 03 00:20:38 2005 +0300 @@ -128,7 +128,7 @@ auth_request->mech_password = p_strdup(auth_request->pool, password); - for (; num > 0; num++) { + for (; num > 0; num--) { auth_request->passdb = auth_request->passdb->next; if (auth_request->passdb == NULL) { i_error("BUG: PASSV had invalid passdb num"); @@ -193,7 +193,7 @@ auth_request = worker_auth_request_new(client, id, args); auth_request->credentials = credentials; - for (; num > 0; num++) { + for (; num > 0; num--) { auth_request->passdb = auth_request->passdb->next; if (auth_request->passdb == NULL) { i_error("BUG: PASSL had invalid passdb num"); @@ -237,7 +237,7 @@ auth_request = worker_auth_request_new(client, id, args); - for (; num > 0; num++) { + for (; num > 0; num--) { auth_request->userdb = auth_request->userdb->next; if (auth_request->userdb == NULL) { i_error("BUG: USER had invalid userdb num");