From 3fa41891cf2507928cf37878cd89cde17db27b20 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Fri, 5 Jan 2024 23:40:30 +0200 Subject: [PATCH] Fixed crash if dbus is not accesible Signed-off-by: Trial97 --- lib/client_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client_impl.c b/lib/client_impl.c index fc36338c..8f167ac0 100644 --- a/lib/client_impl.c +++ b/lib/client_impl.c @@ -150,7 +150,7 @@ static int log_error(const char *fmt, ...) static void hop_off_the_bus(DBusConnection **bus) { - if (bus == NULL) + if (bus == NULL || *bus == NULL) return; dbus_connection_unref(*bus);