dovecot-1.1: deliver: Log an error if auth lookup fails unexpect...

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 18 13:58:06 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/b085c58fcf14
changeset: 7943:b085c58fcf14
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 18 13:58:03 2008 +0300
description:
deliver: Log an error if auth lookup fails unexpectedly.

diffstat:

1 file changed, 4 insertions(+), 2 deletions(-)
src/deliver/auth-client.c |    6 ++++--

diffs (24 lines):

diff -r f8e6d1922280 -r b085c58fcf14 src/deliver/auth-client.c
--- a/src/deliver/auth-client.c	Sat Oct 18 13:30:15 2008 +0300
+++ b/src/deliver/auth-client.c	Sat Oct 18 13:58:03 2008 +0300
@@ -194,6 +194,7 @@ static void auth_input(struct auth_conne
 		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_conne
 			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);


More information about the dovecot-cvs mailing list