From: Jeremy Allison Date: Thu, 1 Sep 2022 23:07:34 +0000 (-0700) Subject: s3: libsmb: In cli_list_old_send(), push state->mask into the packet, not just mask. X-Git-Tag: talloc-2.4.0~1030 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=070b73e3f96c46bb4a96a8149c4c77ab3080a946;p=thirdparty%2Fsamba.git s3: libsmb: In cli_list_old_send(), push state->mask into the packet, not just mask. This doesn't matter right now, but it will when I add DFS path awareness to cli_list(). Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 25040438d9e..b54b17bbc17 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -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)) {