diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-10 00:32:13 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-10 00:32:13 +0000 |
commit | b6e365271f5409db20b5e67a218eb0694af6f920 (patch) | |
tree | e0816b16b994ef89f009309199c13ab2f75dd6c7 /source3 | |
parent | b493aadb7a1b73c99c0c68d410001fa7ce6f0817 (diff) | |
download | samba-b6e365271f5409db20b5e67a218eb0694af6f920.tar.gz samba-b6e365271f5409db20b5e67a218eb0694af6f920.tar.bz2 samba-b6e365271f5409db20b5e67a218eb0694af6f920.zip |
Fix for possible segfault in readline handler. Found by vitalyb@mail333.com.
Jeremy.
(This used to be commit ec36cb4f6f59dac2f459d831f960152603e12633)
Diffstat (limited to 'source3')
-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 f885106275..b498b5b4a8 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2406,10 +2406,11 @@ static void readline_callback(void) last_t = t; + again: + if (cli->fd == -1) return; - again: FD_ZERO(&fds); FD_SET(cli->fd,&fds); |