ofono/gdbus
Szymon Janc df8cf542d8 gdbus: Check for NULL DBusPendingCall in g_dbus_send_message_with_reply
"Warning: if the connection is disconnected or you try to send Unix file
descriptors on a connection that does not support them, the
DBusPendingCall will be set to NULL, so be careful with this."

Check this in g_dbus_send_message_with_reply so that callers don't need
to double check for NULL if g_dbus_send_message_with_reply returned
TRUE.

This also fix crash if passing FD over D-Bus is blocked e.g. by SELinux
policy.

bluetoothd[1894]: profiles/audio/avdtp.c:session_cb()
bluetoothd[1894]: profiles/audio/avdtp.c:avdtp_parse_cmd() Received
    SET_CONFIGURATION_CMD
bluetoothd[1894]: profiles/audio/a2dp.c:endpoint_setconf_ind() Source
    0x6c5000: Set_Configuration_Ind
bluetoothd[1894]: profiles/audio/avdtp.c:avdtp_ref() 0x6df360: ref=1
bluetoothd[1894]: profiles/audio/a2dp.c:setup_ref() 0x6d32b0: ref=1
process 1894: arguments to dbus_pending_call_set_notify() were incorrect,
     assertion "pending != NULL" failed in file dbus-pending-call.c line
     636.
This is normally a bug in some application using the D-Bus library.
2013-10-14 06:06:31 -07:00
..
client.c gdbus/client: Use g_dbus_add_properties_watch to track properties 2013-09-12 08:25:23 -07:00
gdbus.h gdbus: Add g_dbus_send_message_with_reply 2013-09-10 19:07:28 -07:00
mainloop.c gdbus: Fix crash when getting disconnected from the bus 2012-10-31 16:18:41 -05:00
object.c gdbus: Check for NULL DBusPendingCall in g_dbus_send_message_with_reply 2013-10-14 06:06:31 -07:00
polkit.c gdbus: Update copyright information 2011-01-01 17:32:29 -08:00
watch.c gdbus/watch: Fix crash when disconnecting from D-Bus 2013-09-12 08:25:23 -07:00