[at-spi2-core] Check that message is non-NULL before calling libdbus
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Check that message is non-NULL before calling libdbus
- Date: Tue, 15 Jan 2013 16:06:48 +0000 (UTC)
commit d20f38c58e79d41c1b09aad61b13901ad4348387
Author: Mike Gorse <mgorse suse com>
Date: Tue Jan 15 10:07:12 2013 -0600
Check that message is non-NULL before calling libdbus
_atspi_dbus_call_partial now checks for an error message, but it should
first check that the message is not NULL, or libdbus will abort.
atspi/atspi-misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index e4ef09f..471d6a1 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -1174,7 +1174,7 @@ out:
dbus_error_free (&err);
}
- if (dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_ERROR)
+ if (reply && dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_ERROR)
{
const char *err_str = NULL;
dbus_message_get_args (reply, NULL, DBUS_TYPE_STRING, &err_str, DBUS_TYPE_INVALID);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]