1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-03 04:23:50 +03:00

r1739: fixed the padding in setpathinfo, noticed when forcing negotiated ascii strings

This commit is contained in:
Andrew Tridgell
2004-08-11 21:10:16 +00:00
committed by Gerald (Jerry) Carter
parent b6664bdd0f
commit fc75dc4902

View File

@@ -180,12 +180,12 @@ static struct smbcli_request *smb_raw_setpathinfo_blob_send(struct smbcli_tree *
tp.in.max_data = 0;
tp.in.setup = &setup;
tp.in.params = data_blob_talloc(mem_ctx, NULL, 4);
tp.in.params = data_blob_talloc(mem_ctx, NULL, 6);
if (!tp.in.params.data) {
return NULL;
}
SSVAL(tp.in.params.data, 0, info_level);
SSVAL(tp.in.params.data, 2, 0);
SIVAL(tp.in.params.data, 2, 0);
smbcli_blob_append_string(tree->session, mem_ctx,
&tp.in.params,
fname, STR_TERMINATE);