]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: In cli_list_old_send(), push state->mask into the packet, not just mask.
authorJeremy Allison <jra@samba.org>
Thu, 1 Sep 2022 23:07:34 +0000 (16:07 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 15 Sep 2022 18:43:32 +0000 (18:43 +0000)
This doesn't matter right now, but it will when I
add DFS path awareness to cli_list().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/libsmb/clilist.c

index 25040438d9e8d93bc211142e803a3479a1dfd3a0..b54b17bbc1780b549cbefd933bbe2d4e8a40798e 100644 (file)
@@ -405,8 +405,11 @@ static struct tevent_req *cli_list_old_send(TALLOC_CTX *mem_ctx,
                return tevent_req_post(req, ev);
        }
        bytes[0] = 4;
-       bytes = smb_bytes_push_str(bytes, smbXcli_conn_use_unicode(cli->conn), mask,
-                                  strlen(mask)+1, NULL);
+       bytes = smb_bytes_push_str(bytes,
+                                  smbXcli_conn_use_unicode(cli->conn),
+                                  state->mask,
+                                  strlen(state->mask)+1,
+                                  NULL);
 
        bytes = smb_bytes_push_bytes(bytes, 5, (const uint8_t *)&zero, 2);
        if (tevent_req_nomem(bytes, req)) {