neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone
8ae392
From 486778c778a4ddb24395408c6b267e702e19ae02 Mon Sep 17 00:00:00 2001
8ae392
From: Tomas Bzatek <tbzatek@redhat.com>
8ae392
Date: Sat, 1 Jan 2022 22:01:49 +0100
8ae392
Subject: [PATCH] udiskslinuxencrypted: Fix GError ownership
8ae392
8ae392
---
8ae392
 src/udiskslinuxencrypted.c | 3 +--
8ae392
 1 file changed, 1 insertion(+), 2 deletions(-)
8ae392
8ae392
diff --git a/src/udiskslinuxencrypted.c b/src/udiskslinuxencrypted.c
8ae392
index c3a0821ac..3bc54e695 100644
8ae392
--- a/src/udiskslinuxencrypted.c
8ae392
+++ b/src/udiskslinuxencrypted.c
8ae392
@@ -1040,7 +1040,7 @@ handle_resize (UDisksEncrypted       *encrypted,
8ae392
   object = udisks_daemon_util_dup_object (encrypted, &error);
8ae392
   if (object == NULL)
8ae392
     {
8ae392
-      g_dbus_method_invocation_take_error (invocation, error);
8ae392
+      g_dbus_method_invocation_return_gerror (invocation, error);
8ae392
       goto out;
8ae392
     }
8ae392
 
8ae392
@@ -1066,7 +1066,6 @@ handle_resize (UDisksEncrypted       *encrypted,
8ae392
   if (!udisks_daemon_util_get_caller_uid_sync (daemon, invocation, NULL /* GCancellable */, &caller_uid, &error))
8ae392
     {
8ae392
       g_dbus_method_invocation_return_gerror (invocation, error);
8ae392
-      g_clear_error (&error);
8ae392
       goto out;
8ae392
     }
8ae392