s3:smb2_write: add missing initialization of state->in_offset
authorStefan Metzmacher <metze@samba.org>
Thu, 5 Oct 2017 13:59:23 +0000 (15:59 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 28 Mar 2019 23:09:33 +0000 (23:09 +0000)
This is just used in DEBUG messages, but still confusing.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_write.c

index ee95bd317aefff1ad614b446ec6e179ab4918f07..e49e623d79686a5efe2c6f265b0fd5c8e81963a9 100644 (file)
@@ -287,6 +287,7 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx,
                state->write_through = true;
        }
        state->in_length = in_data.length;
+       state->in_offset = in_offset;
        state->out_count = 0;
 
        DEBUG(10,("smbd_smb2_write: %s - %s\n",