summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-23 10:07:19 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-23 18:19:36 +0200
commit6e651dfdc0af9805827ad2ea7fc29675ab6fe74b (patch)
tree68ab9c7bdc182c205296d0f88e8cea77c45130a2 /libcli
parentf08adbb4d63f2cb50de29aff44e7539e76bb87cc (diff)
downloadsamba-6e651dfdc0af9805827ad2ea7fc29675ab6fe74b.tar.gz
samba-6e651dfdc0af9805827ad2ea7fc29675ab6fe74b.tar.bz2
samba-6e651dfdc0af9805827ad2ea7fc29675ab6fe74b.zip
libcli/smb: increment nbt_len, when we have the fully created the SMB2 PDU
metze
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smbXcli_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index 8a41824ef9..f69a6a79fc 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -2632,7 +2632,6 @@ skip_credits:
}
SIVAL(state->smb2.hdr, SMB2_HDR_NEXT_COMMAND, reqlen);
}
- nbt_len += reqlen;
if (signing_key) {
NTSTATUS status;
@@ -2645,6 +2644,8 @@ skip_credits:
}
}
+ nbt_len += reqlen;
+
ret = smbXcli_req_set_pending(reqs[i]);
if (!ret) {
return NT_STATUS_NO_MEMORY;