Message ID | 20250401134811.3720865-1-luiz.dentz@gmail.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v1] dbus: Fix condition for invalidating path | expand |
diff --git a/gdbus/object.c b/gdbus/object.c index 54e04b983a98..f8c694aaffdf 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -810,7 +810,7 @@ static struct generic_data *invalidate_parent_data(DBusConnection *conn, if (child == NULL || g_slist_find(data->objects, child) != NULL) goto done; - if (!g_slist_find(parent->objects, child)) + if (g_slist_find(parent->objects, child)) goto done; data->objects = g_slist_prepend(data->objects, child);
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This fixes the condition introduced in cdd02afbb7ef ("dbus: Fix add invalid memory during interface removal") which was reversed while applying the original fix. --- gdbus/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)