summary refs log tree commit diff
path: root/src/core/dhcp
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-12-18 21:31:39 +0100
committerMichael Biebl <biebl@debian.org>2022-12-18 21:31:39 +0100
commit2965dc70bb3cbfa8de2f279761812b84b87600cb (patch)
tree90d4a861f7cd7a05834e7328af7677e7c8acd17f /src/core/dhcp
parent6e9d10e114f94799d54bb3dabc66e35ab4e3e8cd (diff)
New upstream version 1.40.8 upstream/1.40.8
Diffstat (limited to 'src/core/dhcp')
-rw-r--r--src/core/dhcp/nm-dhcp-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dhcp/nm-dhcp-helper.c b/src/core/dhcp/nm-dhcp-helper.c
index 78db617c..213d9496 100644
--- a/src/core/dhcp/nm-dhcp-helper.c
+++ b/src/core/dhcp/nm-dhcp-helper.c
@@ -252,7 +252,7 @@ do_notify:
     success = FALSE;
 
 out:
-    if (!g_dbus_connection_flush_sync(connection, NULL, &error_flush)) {
+    if (connection && !g_dbus_connection_flush_sync(connection, NULL, &error_flush)) {
         _LOGE("could not flush D-Bus connection: %s", error_flush->message);
         /* if we considered this a success so far, don't fail because of this. */
     }