libcli/smb: outbuf length is a IVAL ie a uint32_t
authorRalph Boehme <slow@samba.org>
Mon, 30 Jan 2017 05:49:58 +0000 (06:49 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 31 Jan 2017 03:34:29 +0000 (04:34 +0100)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jan 31 04:34:29 CET 2017 on sn-devel-144

libcli/smb/smb2cli_query_directory.c

index d1ccdb808e7a9ba12c92a918ff1917004a889093..e6321ffd35ec19db87e5a91ad1a8f0a0f04cc5cc 100644 (file)
@@ -80,7 +80,7 @@ struct tevent_req *smb2cli_query_directory_send(TALLOC_CTX *mem_ctx,
        SBVAL(fixed, 16, fid_volatile);
        SSVAL(fixed, 24, SMB2_HDR_BODY + 32);
        SSVAL(fixed, 26, dyn_len);
-       SSVAL(fixed, 28, outbuf_len);
+       SIVAL(fixed, 28, outbuf_len);
 
        if (dyn_len == 0) {
                dyn = state->dyn_pad;