[dovecot-cvs] dovecot/src/lib-auth auth-server-request.c,1.21,1.22

cras at dovecot.org cras at dovecot.org
Fri Jan 7 19:34:10 EET 2005


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

Modified Files:
	auth-server-request.c 
Log Message:
If connection to auth server is lost, reply with temp error.



Index: auth-server-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-auth/auth-server-request.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- auth-server-request.c	7 Jan 2005 17:24:12 -0000	1.21
+++ auth-server-request.c	7 Jan 2005 17:34:07 -0000	1.22
@@ -252,9 +252,11 @@
 static void request_hash_remove(struct auth_server_connection *conn,
                                 struct auth_request *request)
 {
+	static const char *const temp_failure_args[] = { "temp", NULL };
+
 	if (request->conn == conn) {
 		if (request->next_conn == NULL) {
-			request->callback(request, -1, NULL, NULL,
+			request->callback(request, -1, NULL, temp_failure_args,
 					  request->context);
 			request->conn = NULL;
 		} else {



More information about the dovecot-cvs mailing list