summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-15 06:50:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-15 06:50:45 +0000
commit58abc7b5b623e19d81586db4ae834c8e18e83082 (patch)
treed57c660ea5009d6f7a92bdea271d55d9cb771e90 /source3/client
parenta4ba0496846924df4688cf3678940ec3b14e6376 (diff)
downloadsamba-58abc7b5b623e19d81586db4ae834c8e18e83082.tar.gz
samba-58abc7b5b623e19d81586db4ae834c8e18e83082.tar.bz2
samba-58abc7b5b623e19d81586db4ae834c8e18e83082.zip
If the server went away, don't segfault by attempting to FD_SET -1.
Andrew Bartlett (This used to be commit 4b1337ee94a19e39a2f4012c4dbc32a2e58cacf5)
Diffstat (limited to 'source3/client')
-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 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);