qrexec-agent: fix array read underflow

This commit is contained in:
Vincent Penquerc'h 2013-12-28 11:18:15 -05:00 committed by Marek Marczykowski-Górecki
parent b2e84900a3
commit 1dfd1d0e70

View File

@ -223,7 +223,7 @@ void update_max_process_fd()
{
int i;
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;
}