1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

vfs_recycle: use the correct return in SMB_VFS_HANDLE_GET_DATA()

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>
(cherry picked from commit b38241da3dd73386c4f41a56d95d33d4e1e3d2de)
This commit is contained in:
Stefan Metzmacher 2024-06-14 10:07:02 +02:00 committed by Jule Anger
parent a5d5d83c49
commit 4bb5f8a92a

View 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();