From: Timo Sirainen Date: Sat, 18 Oct 2008 10:58:03 +0000 (+0300) Subject: deliver: Log an error if auth lookup fails unexpectedly. X-Git-Tag: 1.2.alpha3~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4aebdaa6888fc917d9787442cb8f546801c4dd29;p=thirdparty%2Fdovecot%2Fcore.git deliver: Log an error if auth lookup fails unexpectedly. --HG-- branch : HEAD --- diff --git a/src/deliver/auth-client.c b/src/deliver/auth-client.c index 90bb612d2d..be58ad6043 100644 --- a/src/deliver/auth-client.c +++ b/src/deliver/auth-client.c @@ -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);