diff --git a/qrexec/qrexec-daemon.c b/qrexec/qrexec-daemon.c index 41cb7a4..0cf58a1 100644 --- a/qrexec/qrexec-daemon.c +++ b/qrexec/qrexec-daemon.c @@ -417,7 +417,7 @@ static int handle_cmdline_body_from_client(int fd, struct msg_header *hdr) strncmp(policy_pending[i].params.ident, buf, len) == 0) { policy_pending[i].pid = 0; while (policy_pending_max > 0 && - policy_pending[policy_pending_max].pid > 0) + policy_pending[policy_pending_max].pid == 0) policy_pending_max--; break; }