]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: Cleanup - Rename auth_error to auth_failed_reason for consistency
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 12 Jun 2017 08:33:38 +0000 (11:33 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 13 Jun 2017 09:06:42 +0000 (12:06 +0300)
src/lib-storage/index/imapc/imapc-storage.c
src/lib-storage/index/imapc/imapc-storage.h

index f4709b11ef934f740c7cd5891e79533ccb49d0b9..f770713068144484766e89ef53afa3b29558ec0b 100644 (file)
@@ -230,7 +230,7 @@ imapc_storage_client_login_callback(const struct imapc_command_reply *reply,
        }
 
        client->auth_failed_state = reply->state;
-       client->auth_error = i_strdup(reply->text_full);
+       client->auth_failed_reason = i_strdup(reply->text_full);
 
        if (client->_storage != NULL) {
                if (reply->state == IMAPC_COMMAND_STATE_DISCONNECTED)
@@ -268,7 +268,7 @@ static void imapc_storage_client_login(struct imapc_storage_client *client,
                if (imapc_storage_client_handle_auth_failure(client)) {
                        user->error = p_strdup_printf(user->pool,
                                "imapc: Login to %s failed: %s",
-                               host, client->auth_error);
+                               host, client->auth_failed_reason);
                }
        }
 }
@@ -368,7 +368,7 @@ void imapc_storage_client_unref(struct imapc_storage_client **_client)
        array_foreach_modifiable(&client->untagged_callbacks, cb)
                i_free(cb->name);
        array_free(&client->untagged_callbacks);
-       i_free(client->auth_error);
+       i_free(client->auth_failed_reason);
        i_free(client);
 }
 
index dad7a1ee4197c8c71157b938fd18bd87b3742fff..84b5870d098cf5d4fa172dfe8b36c1268562f622 100644 (file)
@@ -55,7 +55,7 @@ struct imapc_storage_client {
        /* IMAPC_COMMAND_STATE_OK if no auth failure (yet), otherwise result to
           the LOGIN/AUTHENTICATE command. */
        enum imapc_command_state auth_failed_state;
-       char *auth_error;
+       char *auth_failed_reason;
 
        /* Authentication reply was received (success or failure) */
        bool auth_returned:1;