summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-18 10:56:37 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-18 10:56:37 +0000
commit818f2a5dac6a1d17a9535a41b388d0a1c89eb186 (patch)
tree6e3355e69da81d824ca164103cbaebe20fbf1f7e /source3
parentb01a915b64560ee8acf957f91abed4687a93dcba (diff)
downloadsamba-818f2a5dac6a1d17a9535a41b388d0a1c89eb186.tar.gz
samba-818f2a5dac6a1d17a9535a41b388d0a1c89eb186.tar.bz2
samba-818f2a5dac6a1d17a9535a41b388d0a1c89eb186.zip
Fix segfault on FD_SET() when we have an fd of -1
Andrew Bartlett (This used to be commit 92bd0f69df4eef612b73da00e45d244f5236afa2)
Diffstat (limited to 'source3')
-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);