mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +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:
parent
b01a915b64
commit
818f2a5dac
@ -2269,6 +2269,9 @@ static void readline_callback(void)
|
|||||||
|
|
||||||
last_t = t;
|
last_t = t;
|
||||||
|
|
||||||
|
if (cli->fd == -1)
|
||||||
|
return;
|
||||||
|
|
||||||
again:
|
again:
|
||||||
FD_ZERO(&fds);
|
FD_ZERO(&fds);
|
||||||
FD_SET(cli->fd,&fds);
|
FD_SET(cli->fd,&fds);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user