[evolution-data-server] Avoid possible crash in source_parse_dbus_data()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Avoid possible crash in source_parse_dbus_data()
- Date: Mon, 23 Mar 2015 16:44:24 +0000 (UTC)
commit 9cde12ff85bd1a2e0f2556cb2a1928bfced3d864
Author: Milan Crha <mcrha redhat com>
Date: Mon Mar 23 14:03:39 2015 +0100
Avoid possible crash in source_parse_dbus_data()
libedataserver/e-source.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libedataserver/e-source.c b/libedataserver/e-source.c
index ad68a64..0106bd5 100644
--- a/libedataserver/e-source.c
+++ b/libedataserver/e-source.c
@@ -937,6 +937,9 @@ source_parse_dbus_data (ESource *source,
gchar *data;
gboolean success;
+ if (!source->priv->dbus_object)
+ return FALSE;
+
dbus_object = E_DBUS_OBJECT (source->priv->dbus_object);
dbus_source = e_dbus_object_get_source (dbus_object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]