1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

libcli/smb: increment nbt_len, when we have the fully created the SMB2 PDU

metze
This commit is contained in:
Stefan Metzmacher 2012-07-23 10:07:19 +02:00
parent f08adbb4d6
commit 6e651dfdc0

View File

@ -2632,7 +2632,6 @@ skip_credits:
} }
SIVAL(state->smb2.hdr, SMB2_HDR_NEXT_COMMAND, reqlen); SIVAL(state->smb2.hdr, SMB2_HDR_NEXT_COMMAND, reqlen);
} }
nbt_len += reqlen;
if (signing_key) { if (signing_key) {
NTSTATUS status; NTSTATUS status;
@ -2645,6 +2644,8 @@ skip_credits:
} }
} }
nbt_len += reqlen;
ret = smbXcli_req_set_pending(reqs[i]); ret = smbXcli_req_set_pending(reqs[i]);
if (!ret) { if (!ret) {
return NT_STATUS_NO_MEMORY; return NT_STATUS_NO_MEMORY;