From 13c2ca4b4f9cfbfb7a40bfb37427621d5c5937aa Mon Sep 17 00:00:00 2001
From: =?utf8?q?Pawe=C5=82=20Stawicki?=
Date: Fri, 16 Mar 2018 17:45:31 +0100
Subject: [PATCH] [prevent][42662] Fix for unchecked return value
Change-Id: Iee850e8fb485800d5c045fe4c7cd81728defd1d6
---
atspi/atspi-misc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index 5895935..5c0a40d 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -999,6 +999,7 @@ check_for_hang (DBusMessage *message, DBusError *error, DBusConnection *bus, con
DBusMessage *message;
gchar *bus_name_dup;
DBusPendingCall *pending = NULL;
+ dbus_bool_t result;
for (l = hung_processes; l; l = l->next)
if (!strcmp (l->data, bus_name))
return;
@@ -1007,9 +1008,9 @@ check_for_hang (DBusMessage *message, DBusError *error, DBusConnection *bus, con
"Ping");
if (!message)
return;
- dbus_connection_send_with_reply (bus, message, &pending, -1);
+ result = dbus_connection_send_with_reply (bus, message, &pending, -1);
dbus_message_unref (message);
- if (!pending)
+ if (!result || !pending)
return;
bus_name_dup = g_strdup (bus_name);
hung_processes = g_slist_append (hung_processes, bus_name_dup);
--
2.7.4