smbd: Rename smbd_smb2_send_oplock_break_state->buf to ->body
authorVolker Lendecke <vl@samba.org>
Mon, 7 Jul 2014 10:05:08 +0000 (10:05 +0000)
committerVolker Lendecke <vl@samba.org>
Tue, 8 Jul 2014 15:28:11 +0000 (17:28 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_server.c

index 8817ff202570cbfcb27cbb9cc51cdcf16f721d58..bf8e83ac07c3239dd24e5c387dc5a5fc109c76d5 100644 (file)
@@ -2726,8 +2726,8 @@ struct smbd_smb2_send_oplock_break_state {
        uint8_t nbt_hdr[NBT_HDR_SIZE];
        uint8_t tf[SMB2_TF_HDR_SIZE];
        uint8_t hdr[SMB2_HDR_BODY];
-       uint8_t buf[0x18];
        struct iovec vector[1+SMBD_SMB2_NUM_IOV_PER_REQ];
+       uint8_t body[0x18];
 };
 
 NTSTATUS smbd_smb2_send_oplock_break(struct smbd_server_connection *sconn,
@@ -2755,8 +2755,8 @@ NTSTATUS smbd_smb2_send_oplock_break(struct smbd_server_connection *sconn,
        }
        state->sconn = sconn;
 
-       body = state->buf;
-       body_len = 0x18;
+       body = state->body;
+       body_len = sizeof(state->body);
 
        if (do_encryption) {
                nonce_high = session->nonce_high;