]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove redundant initialisation
authorRalph Boehme <slow@samba.org>
Sun, 30 Nov 2025 16:12:09 +0000 (17:12 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 8 Dec 2025 10:20:36 +0000 (10:20 +0000)
cookie.allow_reconnect is already set to false by ZERO_STRUCT(cookie).

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/durable.c

index 5a17aadcc9b444cf475a2ec4a21877c861994949..8e99db0f6a170110e94cf8edf74d6a0864b44768 100644 (file)
@@ -92,7 +92,6 @@ NTSTATUS vfs_default_durable_cookie(struct files_struct *fsp,
        }
 
        ZERO_STRUCT(cookie);
-       cookie.allow_reconnect = false;
        cookie.id = fsp->file_id;
        cookie.servicepath = conn->connectpath;
        cookie.base_name = fsp->fsp_name->base_name;