]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Fixed reporting auth failure reporting to client.
authorTimo Sirainen <tss@iki.fi>
Fri, 4 Sep 2009 18:58:46 +0000 (14:58 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 4 Sep 2009 18:58:46 +0000 (14:58 -0400)
--HG--
branch : HEAD

src/master/service-auth-server.c
src/master/service-auth-source.c

index f84d9de3ea4f9eafb6fb9335470c9941be48bee1..89eb7a98ae5e9a92a2cdad36d1a700024d51c3c2 100644 (file)
@@ -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;
index 9d325540edef0b329f61d8913fb3df68743e990f..e9da6197347cbee28fcc822626ac751fb805e9e9 100644 (file)
@@ -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;
        }