Commit 322c6e93 authored by Marco Trevisan's avatar Marco Trevisan 🎺 Committed by David Zeuthen

GDBusConnection: Avoid dereferencing vtable for unregistered objects

https://bugzilla.gnome.org/show_bug.cgi?id=671988Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
parent 617c0cb6
......@@ -4663,9 +4663,6 @@ call_in_idle_cb (gpointer user_data)
guint registration_id;
guint subtree_registration_id;
vtable = g_object_get_data (G_OBJECT (invocation), "g-dbus-interface-vtable");
g_assert (vtable != NULL && vtable->method_call != NULL);
registration_id = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (invocation), "g-dbus-registration-id"));
subtree_registration_id = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (invocation), "g-dbus-subtree-registration-id"));
......@@ -4684,6 +4681,9 @@ call_in_idle_cb (gpointer user_data)
goto out;
}
vtable = g_object_get_data (G_OBJECT (invocation), "g-dbus-interface-vtable");
g_assert (vtable != NULL && vtable->method_call != NULL);
vtable->method_call (g_dbus_method_invocation_get_connection (invocation),
g_dbus_method_invocation_get_sender (invocation),
g_dbus_method_invocation_get_object_path (invocation),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment