]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: If auth master login fails, make sure error message is logged.
authorTimo Sirainen <tss@iki.fi>
Wed, 17 Nov 2010 17:52:52 +0000 (17:52 +0000)
committerTimo Sirainen <tss@iki.fi>
Wed, 17 Nov 2010 17:52:52 +0000 (17:52 +0000)
src/lib-master/master-login-auth.c

index 3d366fbc1493870ec61ebcf4d14a7f853df87d8e..373a17d8181f81c90ad9b41527973af44556eec9 100644 (file)
@@ -79,6 +79,8 @@ void master_login_auth_disconnect(struct master_login_auth *auth)
 {
        struct master_login_auth_request *request;
 
+       if (auth->request_head != NULL)
+               i_error("Disconnected from auth server, aborting requests");
        while (auth->request_head != NULL) {
                request = auth->request_head;
                DLLIST2_REMOVE(&auth->request_head,
@@ -272,8 +274,10 @@ master_login_auth_input_fail(struct master_login_auth *auth,
 
        request = master_login_auth_lookup_request(auth, id);
        if (request != NULL) {
-               if (error != NULL)
+               if (error == NULL)
                        i_error("Internal auth failure");
+               else
+                       i_error("Internal auth failure: %s", error);
                request->callback(NULL, error != NULL ? error :
                                  MASTER_AUTH_ERRMSG_INTERNAL_FAILURE,
                                  request->context);