changeset 22185:5a799d773a6b

imapc: Cleanup - Rename auth_error to auth_failed_reason for consistency
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 12 Jun 2017 11:33:38 +0300
parents 4f4219ee5933
children 4dc0ba97d01f
files src/lib-storage/index/imapc/imapc-storage.c src/lib-storage/index/imapc/imapc-storage.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-storage.c	Mon Jun 12 11:32:23 2017 +0300
+++ b/src/lib-storage/index/imapc/imapc-storage.c	Mon Jun 12 11:33:38 2017 +0300
@@ -230,7 +230,7 @@
 	}
 
 	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 @@
 		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 @@
 	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);
 }
 
--- a/src/lib-storage/index/imapc/imapc-storage.h	Mon Jun 12 11:32:23 2017 +0300
+++ b/src/lib-storage/index/imapc/imapc-storage.h	Mon Jun 12 11:33:38 2017 +0300
@@ -55,7 +55,7 @@
 	/* 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;