summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/client/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 41dc264b42..20198fc5c8 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2269,6 +2269,9 @@ static void readline_callback(void)
last_t = t;
+ if (cli->fd == -1)
+ return;
+
again:
FD_ZERO(&fds);
FD_SET(cli->fd,&fds);