[dovecot-cvs] dovecot/src/auth auth-request.c,1.58.2.30,1.58.2.31

tss at dovecot.org tss at dovecot.org
Wed Mar 14 14:42:27 EET 2007


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

Modified Files:
      Tag: branch_1_0
	auth-request.c 
Log Message:
If unknown user was found from auth cache, we returned an invalid value
instead of USERDB_RESULT_USER_UNKNOWN.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.58.2.30
retrieving revision 1.58.2.31
diff -u -d -r1.58.2.30 -r1.58.2.31
--- auth-request.c	10 Mar 2007 14:04:31 -0000	1.58.2.30
+++ auth-request.c	14 Mar 2007 12:42:24 -0000	1.58.2.31
@@ -572,12 +572,12 @@
 
 	if (*value == '\0') {
 		/* negative cache entry */
-		*result_r = PASSDB_RESULT_USER_UNKNOWN;
+		*result_r = USERDB_RESULT_USER_UNKNOWN;
 		*reply_r = auth_stream_reply_init(request);
 		return TRUE;
 	}
 
-	*result_r = PASSDB_RESULT_OK;
+	*result_r = USERDB_RESULT_OK;
 	*reply_r = auth_stream_reply_init(request);
 	auth_stream_reply_import(*reply_r, value);
 	return TRUE;
@@ -612,7 +612,7 @@
 				       "user not found from userdb");
 	}
 
-	if (result != PASSDB_RESULT_INTERNAL_FAILURE)
+	if (result != USERDB_RESULT_INTERNAL_FAILURE)
 		auth_request_userdb_save_cache(request, reply, result);
 	else if (passdb_cache != NULL && userdb->cache_key != NULL) {
 		/* lookup failed. if we're looking here only because the



More information about the dovecot-cvs mailing list