summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-11-15 17:02:12 +0100
committerJeremy Allison <jra@samba.org>2013-11-15 11:07:23 -0800
commitf8ab594d0253920cefc441587a55fddb688be550 (patch)
tree65081a4ed6ad92f066457d28f1a84b698efeac42
parentf77195ace735b91addc0e0a46197d19eb3d6bbfc (diff)
downloadsamba-f8ab594d0253920cefc441587a55fddb688be550.tar.gz
samba-f8ab594d0253920cefc441587a55fddb688be550.tar.xz
samba-f8ab594d0253920cefc441587a55fddb688be550.zip
s3-libsmb: Use the right macro to set uint16_t attr.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/libsmb/cli_smb2_fnum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c
index d10e1d274c4..1e2047ef676 100644
--- a/source3/libsmb/cli_smb2_fnum.c
+++ b/source3/libsmb/cli_smb2_fnum.c
@@ -1313,7 +1313,7 @@ NTSTATUS cli_smb2_setatr(struct cli_state *cli,
inbuf.length = sizeof(inbuf_store);
data_blob_clear(&inbuf);
- SIVAL(inbuf.data,32,attr);
+ SSVAL(inbuf.data, 32, attr);
if (mtime != 0) {
put_long_date((char *)inbuf.data + 16,mtime);
}