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 | 151b7d0d88e14dd17c28e522a3e1e8f64a4a2a87 (patch) | |
tree | eeab725e1dd10ee9dfa719914d3fc4d20bdcccd4 /source/client | |
parent | 7bec28f23c5bef8516e798a0808585ed1a30517e (diff) | |
download | samba-151b7d0d88e14dd17c28e522a3e1e8f64a4a2a87.tar.gz samba-151b7d0d88e14dd17c28e522a3e1e8f64a4a2a87.tar.xz samba-151b7d0d88e14dd17c28e522a3e1e8f64a4a2a87.zip |
Fix for possible segfault in readline handler. Found by vitalyb@mail333.com.
Jeremy.
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/client/client.c b/source/client/client.c index f5be4e98592..36c76cbf15d 100644 --- a/source/client/client.c +++ b/source/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); |