about summary refs log tree commit diff
path: root/src/core/nm-checkpoint-manager.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2022-05-17 15:30:19 +0200
committerSebastien Bacher <seb128@ubuntu.com>2022-05-17 15:30:19 +0200
commit1e636d8e5e986b9f2260c36bb87fb499d724085c (patch)
treeac613b9372adf622496a7d616050d7e1c09b4fba /src/core/nm-checkpoint-manager.c
parentf4966e573c855d4667e6c236d8197d9949020e21 (diff)
parent1a31bc3c63474ca02c83b02add85ea4e740e5597 (diff)
Merge remote-tracking branch 'debian/debian/master' into ubuntu/master
Diffstat (limited to 'src/core/nm-checkpoint-manager.c')
-rw-r--r--src/core/nm-checkpoint-manager.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/nm-checkpoint-manager.c b/src/core/nm-checkpoint-manager.c
index 4a3e7aaf..6c9ea2a6 100644
--- a/src/core/nm-checkpoint-manager.c
+++ b/src/core/nm-checkpoint-manager.c
@@ -259,10 +259,11 @@ nm_checkpoint_manager_lookup_by_path(NMCheckpointManager *self, const char *path
 
     g_return_val_if_fail(self, NULL);
 
-    checkpoint =
-        nm_dbus_manager_lookup_object(nm_dbus_object_get_manager(NM_DBUS_OBJECT(GET_MANAGER(self))),
-                                      path);
-    if (!checkpoint || !NM_IS_CHECKPOINT(checkpoint)) {
+    checkpoint = nm_dbus_manager_lookup_object_with_type(
+        nm_dbus_object_get_manager(NM_DBUS_OBJECT(GET_MANAGER(self))),
+        NM_TYPE_CHECKPOINT,
+        path);
+    if (!checkpoint) {
         g_set_error(error,
                     NM_MANAGER_ERROR,
                     NM_MANAGER_ERROR_INVALID_ARGUMENTS,