diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/raw/clitransport.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c index 5290dd953d..784a6f1798 100644 --- a/source4/libcli/raw/clitransport.c +++ b/source4/libcli/raw/clitransport.c @@ -433,6 +433,10 @@ 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; |