diff --git a/libcli/smb/smb2cli_query_directory.c b/libcli/smb/smb2cli_query_directory.c index d1ccdb808e7..e6321ffd35e 100644 --- a/libcli/smb/smb2cli_query_directory.c +++ b/libcli/smb/smb2cli_query_directory.c @@ -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;