ACCPECT fix initial send_credits => 0
authorStefan Metzmacher <metze@samba.org>
Wed, 5 Oct 2016 17:18:10 +0000 (19:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Jun 2018 12:35:18 +0000 (14:35 +0200)
libcli/smb/smb_direct.c

index 99f5373277a9e981c717024e56a08db375627c66..3dbfe55a5dc99065395d8c72e77caf59e95c8217 100644 (file)
@@ -1885,8 +1885,6 @@ DEBUG(0,("%s:%s: here...\n", __location__, __func__));
                        return;
                }
 
-               credits_granted = 1;
-
                c->state.receive_credit_target = credits_requested;
 
                tmp = c->state.max_receive_size;
@@ -1898,8 +1896,6 @@ DEBUG(0,("%s:%s: here...\n", __location__, __func__));
                tmp = MIN(tmp, max_receive_size);
                c->state.max_send_size = tmp;
 
-               c->state.send_credits = credits_granted;
-
                TALLOC_FREE(c->ibv.fde_channel);
                TALLOC_FREE(c->rdma.fde_channel);