diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-08-11 21:10:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:51 -0500 |
commit | 44e04cdb11a87ae78cabd76c61e11ae1f283dfaa (patch) | |
tree | 0f1790f69850c94dccefbfba4dc0155739ed7bbc | |
parent | b3e7722a88cec3ffdc937effbeff149b8353df72 (diff) | |
download | samba-44e04cdb11a87ae78cabd76c61e11ae1f283dfaa.tar.gz samba-44e04cdb11a87ae78cabd76c61e11ae1f283dfaa.tar.bz2 samba-44e04cdb11a87ae78cabd76c61e11ae1f283dfaa.zip |
r1739: fixed the padding in setpathinfo, noticed when forcing negotiated ascii strings
(This used to be commit fc75dc49025f4beb0f1df656cfe4ec497e693dcc)
-rw-r--r-- | source4/libcli/raw/rawsetfileinfo.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/libcli/raw/rawsetfileinfo.c b/source4/libcli/raw/rawsetfileinfo.c index b1667db50f..2b525f2661 100644 --- a/source4/libcli/raw/rawsetfileinfo.c +++ b/source4/libcli/raw/rawsetfileinfo.c @@ -164,10 +164,10 @@ static struct smbcli_request *smb_raw_setfileinfo_blob_send(struct smbcli_tree * Very raw set path info - takes data blob ****************************************************************************/ static struct smbcli_request *smb_raw_setpathinfo_blob_send(struct smbcli_tree *tree, - TALLOC_CTX *mem_ctx, - const char *fname, - uint16_t info_level, - DATA_BLOB *blob) + TALLOC_CTX *mem_ctx, + const char *fname, + uint16_t info_level, + DATA_BLOB *blob) { struct smb_trans2 tp; uint16_t setup = TRANSACT2_SETPATHINFO; @@ -180,15 +180,15 @@ 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); + &tp.in.params, + fname, STR_TERMINATE); tp.in.data = *blob; |