Mercurial > dovecot > core-2.2
changeset 4040:c0d093d8b8e5 HEAD
Fixed passdb credential lookups to work again with blocking passdbs.
author | Timo Sirainen <timo.sirainen@movial.fi> |
---|---|
date | Wed, 22 Feb 2006 15:58:43 +0200 |
parents | fcd4c3281559 |
children | 9d7420b0e1ef |
files | src/auth/auth-worker-client.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-worker-client.c Wed Feb 22 00:50:34 2006 +0200 +++ b/src/auth/auth-worker-client.c Wed Feb 22 15:58:43 2006 +0200 @@ -186,9 +186,9 @@ struct auth_request *auth_request; const char *credentials_str; enum passdb_credentials credentials; - unsigned int num; + unsigned int passdb_id; - num = atoi(t_strcut(args, '\t')); + passdb_id = atoi(t_strcut(args, '\t')); args = strchr(args, '\t'); if (args == NULL) { i_error("BUG: Auth worker server sent us invalid PASSL"); @@ -211,10 +211,10 @@ return; } - for (; num > 0; num--) { + while (auth_request->passdb->id != passdb_id) { auth_request->passdb = auth_request->passdb->next; if (auth_request->passdb == NULL) { - i_error("BUG: PASSL had invalid passdb num"); + i_error("BUG: PASSL had invalid passdb ID"); auth_request_unref(&auth_request); return; }