From: Milan Crha Date: Wed, 1 Sep 2010 08:26:02 +0000 (+0200) Subject: Bug #623912 - SMTP::query_auth_types should not use NULL hash table X-Git-Tag: upstream/3.7.4~2684 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e14af42992ce4ddad4bdf64d4d34f868246b0bc;p=platform%2Fupstream%2Fevolution-data-server.git Bug #623912 - SMTP::query_auth_types should not use NULL hash table --- 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;