changeset 8285:95437a2d0136 HEAD

deliver: Log an error if auth lookup fails unexpectedly.
author Timo Sirainen <tss@iki.fi>
date Sat, 18 Oct 2008 13:58:03 +0300
parents d956f79228da
children f21c6ade6e7f
files src/deliver/auth-client.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		return;
 	case -1:
 		/* disconnected */
+		i_error("Auth lookup disconnected unexpectedly");
 		auth_connection_destroy(conn);
 		return;
 	case -2:
@@ -225,9 +226,10 @@
 			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);