From: Timo Sirainen Date: Fri, 4 Sep 2009 18:58:46 +0000 (-0400) Subject: master: Fixed reporting auth failure reporting to client. X-Git-Tag: 2.0.alpha1~182 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55f9214c2e2a9b7fd58cc7f2fb516335b6d15da5;p=thirdparty%2Fdovecot%2Fcore.git master: Fixed reporting auth failure reporting to client. --HG-- branch : HEAD --- diff --git a/src/master/service-auth-server.c b/src/master/service-auth-server.c index f84d9de3ea..89eb7a98ae 100644 --- a/src/master/service-auth-server.c +++ b/src/master/service-auth-server.c @@ -132,8 +132,8 @@ auth_process_input_notfound(struct service_process_auth_server *process, 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_process_auth_server *process, 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 --git a/src/master/service-auth-source.c b/src/master/service-auth-source.c index 9d325540ed..e9da619734 100644 --- a/src/master/service-auth-source.c +++ b/src/master/service-auth-source.c @@ -208,7 +208,8 @@ service_process_auth_source_input(struct service_process_auth_source *process) 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 service_process_auth_source *process) 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; }