]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use fsctl_get_reparse_tag in fsctl_del_reparse_point
authorVolker Lendecke <vl@samba.org>
Mon, 13 May 2024 12:30:30 +0000 (14:30 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 14 May 2024 22:29:36 +0000 (22:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/util_reparse.c

index a8758857464f5e65de4cce77b0ce9538ab7d2a5f..19a15a06c51f05d4e8ef1f195271d5686cfbaeb8 100644 (file)
@@ -220,8 +220,6 @@ NTSTATUS fsctl_del_reparse_point(struct files_struct *fsp,
                                 uint32_t in_len)
 {
        uint32_t existing_tag;
-       uint8_t *existing_data = NULL;
-       uint32_t existing_len;
        uint32_t reparse_tag;
        const uint8_t *reparse_data = NULL;
        size_t reparse_data_length;
@@ -229,16 +227,10 @@ NTSTATUS fsctl_del_reparse_point(struct files_struct *fsp,
        uint32_t dos_mode;
        int ret;
 
-       status = fsctl_get_reparse_point(fsp,
-                                        talloc_tos(),
-                                        &existing_tag,
-                                        &existing_data,
-                                        UINT32_MAX,
-                                        &existing_len);
+       status = fsctl_get_reparse_tag(fsp, &existing_tag);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
-       TALLOC_FREE(existing_data);
 
        status = reparse_buffer_check(in_data,
                                      in_len,