r3319: fixed a bug in the client library found by the new non-block testing code
authorAndrew Tridgell <tridge@samba.org>
Thu, 28 Oct 2004 11:58:09 +0000 (11:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:53 +0000 (13:04 -0500)
source/libcli/raw/clitransport.c

index d82d97a0d9d3ed92aa7cf92639a1851df0c1e6e1..3335f557e55557bd20f72082838c8ff7a0dd3cf4 100644 (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;
                }