mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r3319: fixed a bug in the client library found by the new non-block testing code
This commit is contained in:
parent
718175a265
commit
1e62aa262a
@ -443,14 +443,7 @@ static void smbcli_transport_process_recv(struct smbcli_transport *transport)
|
|||||||
transport->recv_buffer.header +
|
transport->recv_buffer.header +
|
||||||
transport->recv_buffer.received,
|
transport->recv_buffer.received,
|
||||||
NBT_HDR_SIZE - transport->recv_buffer.received);
|
NBT_HDR_SIZE - transport->recv_buffer.received);
|
||||||
if (ret == 0) {
|
|
||||||
smbcli_transport_dead(transport);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
if (errno == EINTR || errno == EAGAIN) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
smbcli_transport_dead(transport);
|
smbcli_transport_dead(transport);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -478,9 +471,6 @@ static void smbcli_transport_process_recv(struct smbcli_transport *transport)
|
|||||||
transport->recv_buffer.req_size -
|
transport->recv_buffer.req_size -
|
||||||
transport->recv_buffer.received);
|
transport->recv_buffer.received);
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
if (errno == EINTR || errno == EAGAIN) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
smbcli_transport_dead(transport);
|
smbcli_transport_dead(transport);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user