diff --git a/source/libcli/raw/clitransport.c b/source/libcli/raw/clitransport.c index d82d97a0d9d..3335f557e55 100644 --- a/source/libcli/raw/clitransport.c +++ b/source/libcli/raw/clitransport.c @@ -443,14 +443,7 @@ static void smbcli_transport_process_recv(struct smbcli_transport *transport) transport->recv_buffer.header + transport->recv_buffer.received, NBT_HDR_SIZE - transport->recv_buffer.received); - if (ret == 0) { - smbcli_transport_dead(transport); - return; - } if (ret == -1) { - if (errno == EINTR || errno == EAGAIN) { - return; - } smbcli_transport_dead(transport); return; } @@ -478,9 +471,6 @@ static void smbcli_transport_process_recv(struct smbcli_transport *transport) transport->recv_buffer.req_size - transport->recv_buffer.received); if (ret == -1) { - if (errno == EINTR || errno == EAGAIN) { - return; - } smbcli_transport_dead(transport); return; }