dovecot-2.0: master: Fixed reporting auth failure reporting to c...

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 4 22:00:44 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/1cdee825e414
changeset: 9870:1cdee825e414
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 04 14:58:46 2009 -0400
description:
master: Fixed reporting auth failure reporting to client.

diffstat:

2 files changed, 8 insertions(+), 6 deletions(-)
src/master/service-auth-server.c |    8 ++++----
src/master/service-auth-source.c |    6 ++++--

diffs (48 lines):

diff -r 464c01ae9f0c -r 1cdee825e414 src/master/service-auth-server.c
--- a/src/master/service-auth-server.c	Fri Sep 04 14:30:29 2009 -0400
+++ b/src/master/service-auth-server.c	Fri Sep 04 14:58:46 2009 -0400
@@ -132,8 +132,8 @@ auth_process_input_notfound(struct servi
         request = auth_process_lookup_request(process, id);
 	if (request != NULL) {
 		service_process_auth_source_send_reply(request->process,
-						       request->process_tag,
-						       FALSE);
+					request->process_tag,
+					MASTER_AUTH_STATUS_INTERNAL_ERROR);
 		service_process_auth_request_free(request);
 	}
 	return TRUE;
@@ -156,8 +156,8 @@ auth_process_input_fail(struct service_p
         request = auth_process_lookup_request(process, id);
 	if (request != NULL) {
 		service_process_auth_source_send_reply(request->process,
-						       request->process_tag,
-						       FALSE);
+					request->process_tag,
+					MASTER_AUTH_STATUS_INTERNAL_ERROR);
 		service_process_auth_request_free(request);
 	}
 	return TRUE;
diff -r 464c01ae9f0c -r 1cdee825e414 src/master/service-auth-source.c
--- a/src/master/service-auth-source.c	Fri Sep 04 14:30:29 2009 -0400
+++ b/src/master/service-auth-source.c	Fri Sep 04 14:58:46 2009 -0400
@@ -208,7 +208,8 @@ service_process_auth_source_input(struct
 	if (auth_process == NULL) {
 		service_error(service, "authentication request for unknown "
 			      "auth server PID %s", dec2str(req.auth_pid));
-		service_process_auth_source_send_reply(process, req.tag, FALSE);
+		service_process_auth_source_send_reply(process, req.tag,
+			MASTER_AUTH_STATUS_INTERNAL_ERROR);
 		(void)close(client_fd);
 		return;
 	}
@@ -223,7 +224,8 @@ service_process_auth_source_input(struct
 				  dec2str(req.auth_pid));
                         auth_process->auth_busy_stamp = ioloop_time;
 		}
-		service_process_auth_source_send_reply(process, req.tag, FALSE);
+		service_process_auth_source_send_reply(process, req.tag,
+			MASTER_AUTH_STATUS_INTERNAL_ERROR);
 		(void)close(client_fd);
 		return;
 	}


More information about the dovecot-cvs mailing list