Mercurial > dovecot > core-2.2
changeset 9870:1cdee825e414 HEAD
master: Fixed reporting auth failure reporting to client.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 04 Sep 2009 14:58:46 -0400 |
parents | 464c01ae9f0c |
children | 8a38b5b82a1d |
files | src/master/service-auth-server.c src/master/service-auth-source.c |
diffstat | 2 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ 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;
--- 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 @@ 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 @@ 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; }