From 818f2a5dac6a1d17a9535a41b388d0a1c89eb186 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 18 Mar 2003 10:56:37 +0000 Subject: Fix segfault on FD_SET() when we have an fd of -1 Andrew Bartlett (This used to be commit 92bd0f69df4eef612b73da00e45d244f5236afa2) --- source3/client/client.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit