dovecot-1.2: deliver: Log an error if auth lookup fails unexpect...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 18 13:58:20 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/95437a2d0136
changeset: 8285:95437a2d0136
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 d956f79228da -r 95437a2d0136 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