[dovecot-cvs] dovecot/src/auth auth-worker-client.c,1.6,1.7

cras at dovecot.org cras at dovecot.org
Sun Apr 3 00:20:40 EEST 2005


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv15254

Modified Files:
	auth-worker-client.c 
Log Message:
Auth workers weren't working correctly with more than one passdb/userdb.



Index: auth-worker-client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-worker-client.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- auth-worker-client.c	24 Mar 2005 22:35:37 -0000	1.6
+++ auth-worker-client.c	2 Apr 2005 21:20:38 -0000	1.7
@@ -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");



More information about the dovecot-cvs mailing list