From 58abc7b5b623e19d81586db4ae834c8e18e83082 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 15 Mar 2003 06:50:45 +0000 Subject: If the server went away, don't segfault by attempting to FD_SET -1. Andrew Bartlett (This used to be commit 4b1337ee94a19e39a2f4012c4dbc32a2e58cacf5) --- source3/client/client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/client/client.c') diff --git a/source3/client/client.c b/source3/client/client.c index 065cd2fcc9..99fc779a9e 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); -- cgit