diff options
author | Tim Beale <timbeale@catalyst.net.nz> | 2019-01-07 12:06:15 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-02-01 11:34:10 +0100 |
commit | 5cbce550a7683ad8d62ab0029e283ede5650a3d2 (patch) | |
tree | cbdc4f798bd627388ca0475446ba102dc27de0e4 /libcli | |
parent | 833505239e38778db55b89537d2025b08d8f8e40 (diff) | |
download | samba-5cbce550a7683ad8d62ab0029e283ede5650a3d2.tar.gz |
libcli: Add error log if insufficient SMB2 credits
Although it's unusual to hit this case, I was seeing it happen while
working on the SMB python bindings. Even with debug level 10, there was
nothing coming out to help pin down the source of the
NT_STATUS_INTERNAL_ERROR.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13736
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit bf229de7926f12e329cdb3201f68f20ae776fe32)
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smbXcli_base.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 40480c83aa0..a237bf17d0a 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -3231,6 +3231,9 @@ NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs, avail = MIN(avail, state->conn->smb2.cur_credits); if (avail < charge) { + DBG_ERR("Insufficient credits. " + "%"PRIu64" available, %"PRIu16" needed\n", + avail, charge); return NT_STATUS_INTERNAL_ERROR; } |