[dovecot-cvs] dovecot/src/auth auth-request.c,1.91,1.92

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


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

Modified Files:
	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.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- auth-request.c	10 Mar 2007 14:04:34 -0000	1.91
+++ auth-request.c	14 Mar 2007 12:42:27 -0000	1.92
@@ -600,12 +600,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;
@@ -640,7 +640,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