]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_recycle: use the correct return in SMB_VFS_HANDLE_GET_DATA()
authorStefan Metzmacher <metze@samba.org>
Fri, 14 Jun 2024 08:07:02 +0000 (10:07 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 19 Jun 2024 09:07:36 +0000 (09:07 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15659

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Noel Power <noel.power@suse.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/modules/vfs_recycle.c

index 7f54cef4127acb00ba4c7e2ab4ca9408112543c7..2293185a5aff7166ee1d65ea4053091863259f70 100644 (file)
@@ -436,14 +436,14 @@ static int recycle_unlink_internal(vfs_handle_struct *handle,
        off_t file_size; /* space_avail;        */
        bool exist;
        int rc = -1;
-       struct recycle_config_data *config;
+       struct recycle_config_data *config = NULL;
 
        reload_services(NULL, NULL, false);
 
        SMB_VFS_HANDLE_GET_DATA(handle,
                                config,
                                struct recycle_config_data,
-                               return true);
+                               return -1);
 
        frame = talloc_stackframe();