1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r3319: fixed a bug in the client library found by the new non-block testing code

This commit is contained in:
Andrew Tridgell 2004-10-28 11:58:09 +00:00 committed by Gerald (Jerry) Carter
parent 718175a265
commit 1e62aa262a

View File

@ -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;
}