{
uint16_t credits = 1;
- DEBUG(0,("[possible: cur[%u]\n", conn->smb2.cur_credits));
if (conn->smb2.cur_credits == 0) {
if (max_dyn_len != NULL) {
*max_dyn_len = 0;
mid = state->conn->smb2.mid;
state->conn->smb2.mid += charge;
-{
- uint16_t new_credits = state->conn->smb2.cur_credits;
- new_credits -= charge;
- DEBUG(0,("[request: mid[%llu] cur[%u] - charge[%u] = new[%u] ask[%u]\n",
- (unsigned long long)mid,
- state->conn->smb2.cur_credits, charge, new_credits, credits));
-}
state->conn->smb2.cur_credits -= charge;
if (state->conn->smb2.server.capabilities & SMB2_CAP_LARGE_MTU) {
if (new_credits > UINT16_MAX) {
return NT_STATUS_INVALID_NETWORK_RESPONSE;
}
- DEBUG(0,("[response: mid[%llu] got cur[%u] + credits[%u] = new[%u] flags[0x%08X]\n",
- (unsigned long long)mid,
- conn->smb2.cur_credits, credits, new_credits, flags));
conn->smb2.cur_credits += credits;
req = smb2cli_conn_find_pending(conn, mid);