[evolution-data-server] Bug #623912 - SMTP::query_auth_types should not use NULL hash table
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #623912 - SMTP::query_auth_types should not use NULL hash table
- Date: Wed, 1 Sep 2010 08:29:21 +0000 (UTC)
commit 2e14af42992ce4ddad4bdf64d4d34f868246b0bc
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 1 10:26:02 2010 +0200
Bug #623912 - SMTP::query_auth_types should not use NULL hash table
camel/providers/smtp/camel-smtp-transport.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index 2c73ffe..4d855c6 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -641,6 +641,11 @@ query_auth_types (CamelService *service, GError **error)
if (!connect_to_server_wrapper (service, error))
return NULL;
+ if (!transport->authtypes) {
+ smtp_disconnect (service, TRUE, NULL);
+ return NULL;
+ }
+
types = g_list_copy (service->provider->authtypes);
for (t = types; t; t = next) {
authtype = t->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]