]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Fix cli_fsctl()
authorVolker Lendecke <vl@samba.org>
Wed, 9 Nov 2022 11:56:11 +0000 (12:56 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 22 Nov 2022 18:27:33 +0000 (18:27 +0000)
Untested code is broken code. Found while testing symlinks over SMB1.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clifile.c

index bc99e1953ff38c894f9108441aadbc641837eabc..039bbcb076a4ff5c09b0f9b1ba7ed91ea7cd5c43 100644 (file)
@@ -7174,7 +7174,7 @@ struct tevent_req *cli_fsctl_send(
                0,                 /* flags */
                setup, 4, 0,       /* setup */
                NULL, 0, 0,         /* param */
-               NULL, 0, max_out); /* data */
+               in->data, in->length, max_out); /* data */
 
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);