summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-28 11:58:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:53 -0500
commit28c3dcf6a3be18fd9fcb56bff039925a1244508d (patch)
tree754dfcb8f20a100023425aeb8635d64b40db0f35 /source4
parent8c752ec86156ebfa78f91ee17fab896215bc9322 (diff)
downloadsamba-28c3dcf6a3be18fd9fcb56bff039925a1244508d.tar.gz
samba-28c3dcf6a3be18fd9fcb56bff039925a1244508d.tar.bz2
samba-28c3dcf6a3be18fd9fcb56bff039925a1244508d.zip
r3319: fixed a bug in the client library found by the new non-block testing code
(This used to be commit 1e62aa262aac1c8e3676caac7b65086d21b7a01e)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/raw/clitransport.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c
index d82d97a0d9..3335f557e5 100644
--- a/source4/libcli/raw/clitransport.c
+++ b/source4/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;
}