[evolution-data-server/gnome-3-8] NNTP: Authentication requires nntp_stream set



commit b13b58ad77ea7c98f9d6453139e729f6d0481d7f
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jul 30 16:58:05 2013 +0200

    NNTP: Authentication requires nntp_stream set
    
    Once again, the code expected the opposite, which led to runtime
    warnings and failed connection to the server.

 camel/providers/nntp/camel-nntp-store.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c
index 86ab74c..bfc01f5 100644
--- a/camel/providers/nntp/camel-nntp-store.c
+++ b/camel/providers/nntp/camel-nntp-store.c
@@ -396,6 +396,8 @@ connect_to_server (CamelService *service,
                goto fail;
        }
 
+       nntp_store_reset_state (nntp_store, nntp_stream);
+
        /* backward compatibility, empty 'mechanism' is a non-migrated account */
        if ((user != NULL && *user != '\0' && (!mechanism || !*mechanism)) ||
            (mechanism && *mechanism && g_strcmp0 (mechanism, "ANONYMOUS") != 0)) {
@@ -414,8 +416,6 @@ connect_to_server (CamelService *service,
                        goto fail;
        }
 
-       nntp_store_reset_state (nntp_store, nntp_stream);
-
        /* set 'reader' mode & ignore return code, also ping the server, inn goes offline very quickly 
otherwise */
        if (camel_nntp_raw_command_auth (nntp_store, cancellable, error, (gchar **) &buf, "mode reader") == -1
            || camel_nntp_raw_command_auth (nntp_store, cancellable, error, (gchar **) &buf, "date") == -1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]