1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Fix segfault on FD_SET() when we have an fd of -1

Andrew Bartlett
(This used to be commit 92bd0f69df4eef612b73da00e45d244f5236afa2)
This commit is contained in:
Andrew Bartlett 2003-03-18 10:56:37 +00:00
parent b01a915b64
commit 818f2a5dac

View File

@ -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);