diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-10 00:30:47 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-10 00:30:47 +0000 |
commit | 7ae17cc151c59c8ec8020b97ed4c6482384e65be (patch) | |
tree | 95a98ab696ef8e6877efbdc288887bcad9d56d2e /source3/client | |
parent | aae4f09c8400269e7bc8a0c15abe99c8ce29233a (diff) | |
download | samba-7ae17cc151c59c8ec8020b97ed4c6482384e65be.tar.gz samba-7ae17cc151c59c8ec8020b97ed4c6482384e65be.tar.bz2 samba-7ae17cc151c59c8ec8020b97ed4c6482384e65be.zip |
Fix for possible segfault in readline handler. Found by vitalyb@mail333.com.
Jeremy.
(This used to be commit 151b7d0d88e14dd17c28e522a3e1e8f64a4a2a87)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index f5be4e9859..36c76cbf15 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2265,10 +2265,11 @@ static void readline_callback(void) last_t = t; + again: + if (cli->fd == -1) return; - again: FD_ZERO(&fds); FD_SET(cli->fd,&fds); |