From 4bb5f8a92aa34cf7d65fbc9518a2b8b94a98fec8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 14 Jun 2024 10:07:02 +0200 Subject: [PATCH] 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 Reviewed-by: Martin Schwenke Reviewed-by: Noel Power Reviewed-by: Volker Lendecke (cherry picked from commit b38241da3dd73386c4f41a56d95d33d4e1e3d2de) --- source3/modules/vfs_recycle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c index 7f54cef4127..2293185a5af 100644 --- a/source3/modules/vfs_recycle.c +++ b/source3/modules/vfs_recycle.c @@ -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();