]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
deliver: Log an error if auth lookup fails unexpectedly.
authorTimo Sirainen <tss@iki.fi>
Sat, 18 Oct 2008 10:58:03 +0000 (13:58 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 18 Oct 2008 10:58:03 +0000 (13:58 +0300)
--HG--
branch : HEAD

src/deliver/auth-client.c

index 90bb612d2d2f5acd9850088868d4e378ace40623..be58ad6043ecb237fdbb3dedd7cf627c0d7086f6 100644 (file)
@@ -194,6 +194,7 @@ static void auth_input(struct auth_connection *conn)
                return;
        case -1:
                /* disconnected */
+               i_error("Auth lookup disconnected unexpectedly");
                auth_connection_destroy(conn);
                return;
        case -2:
@@ -225,9 +226,10 @@ static void auth_input(struct auth_connection *conn)
                        auth_parse_input(conn, line + 7);
                } else if (strcmp(line, "NOTFOUND\t1") == 0)
                        return_value = EX_NOUSER;
-               else if (strncmp(line, "FAIL\t1", 6) == 0)
+               else if (strncmp(line, "FAIL\t1", 6) == 0) {
+                       i_error("Auth lookup returned failure");
                        return_value = EX_TEMPFAIL;
-               else if (strncmp(line, "CUID\t", 5) == 0) {
+               else if (strncmp(line, "CUID\t", 5) == 0) {
                        i_error("%s is an auth client socket. "
                                "It should be a master socket.",
                                conn->auth_socket);