mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
Fix segfault on FD_SET() when we have an fd of -1
Andrew Bartlett
This commit is contained in:
parent
454fb43419
commit
92bd0f69df
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user