From f0f82fc7e55b742adc7da2c5040be974310b0855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 26 Jul 2014 02:14:56 +0200 Subject: [PATCH] qrexec: fix loop bounds --- qrexec/qrexec-agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrexec/qrexec-agent.c b/qrexec/qrexec-agent.c index 62d752c..64b2cf3 100644 --- a/qrexec/qrexec-agent.c +++ b/qrexec/qrexec-agent.c @@ -598,7 +598,7 @@ int main() handle_trigger_io(); handle_process_data_all(&rdset); - for (i = 0; i <= MAX_FDS; i++) + for (i = 0; i < MAX_FDS; i++) if (client_info[i].pid && client_info[i].is_blocked && FD_ISSET(client_info[i].stdin_fd, &wrset))