summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-10-21 21:45:02 -0400
committerMatthew Barnes <mbarnes@redhat.com>2011-10-21 21:45:02 -0400
commit13c8e07865d1e6f04b7c477c8713c69efdbb519c (patch)
treea3d1a810352638dbc250de23e3cd2317d3b63344
parent1baddb8b7225cd3ea1cd186f663e859bfae84ba5 (diff)
downloadevolution-data-server-13c8e07865d1e6f04b7c477c8713c69efdbb519c.tar.gz
Avoid a crash in camel_session_get_service_by_url().
Check that we found a CamelProvider before dereferencing it.
-rw-r--r--camel/camel-session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c
index f074852ca..983ae398e 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -916,6 +916,9 @@ camel_session_get_service_by_url (CamelSession *session,
provider = camel_service_get_provider (service);
service_url = camel_service_get_camel_url (service);
+ if (provider == NULL)
+ continue;
+
if (provider->url_equal == NULL)
continue;