qrexec-agent: fix array read underflow
This commit is contained in:
parent
b2e84900a3
commit
1dfd1d0e70
@ -223,7 +223,7 @@ void update_max_process_fd()
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = max_process_fd;
|
for (i = max_process_fd;
|
||||||
process_fd[i].type == FDTYPE_INVALID && i >= 0; i--);
|
i >= 0 && process_fd[i].type == FDTYPE_INVALID; i--);
|
||||||
max_process_fd = i;
|
max_process_fd = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user