s3-libsmb: Use the right macro to set uint16_t attr.
authorAndreas Schneider <asn@samba.org>
Fri, 15 Nov 2013 16:02:12 +0000 (17:02 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 15 Nov 2013 19:07:23 +0000 (11:07 -0800)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cli_smb2_fnum.c

index d10e1d274c4ed76653d7f5d406c5059608a5289c..1e2047ef6763e20cd72870ea2b4483838833589a 100644 (file)
@@ -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);
        }