[evolution-data-server] [IMAPx] Doesn't ask for password when a wrong is entered
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [IMAPx] Doesn't ask for password when a wrong is entered
- Date: Thu, 19 Nov 2015 09:46:54 +0000 (UTC)
commit b0ef745dab66a061e7612f9d39508c7a03387519
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 19 10:46:34 2015 +0100
[IMAPx] Doesn't ask for password when a wrong is entered
camel/providers/imapx/camel-imapx-server.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index bf42f43..2514226 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2939,11 +2939,14 @@ camel_imapx_server_authenticate_sync (CamelIMAPXServer *is,
ic = camel_imapx_command_new (is, CAMEL_IMAPX_JOB_LOGIN, "LOGIN %s %s", user, password);
}
- if (!camel_imapx_server_process_command_sync (is, ic, _("Failed to authenticate"), cancellable,
error))
+ if (!camel_imapx_server_process_command_sync (is, ic, _("Failed to authenticate"), cancellable,
error) && (
+ !ic->status || ic->status->result != IMAPX_NO))
result = CAMEL_AUTHENTICATION_ERROR;
else if (ic->status->result == IMAPX_OK)
result = CAMEL_AUTHENTICATION_ACCEPTED;
else if (ic->status->result == IMAPX_NO) {
+ g_clear_error (error);
+
if (camel_imapx_store_is_connecting_concurrent_connection (store)) {
/* At least one connection succeeded, probably max connection limit
set on the server had been reached, thus use special error code
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]