qrexec: fix pending requests cleanup code (cont)

There was a second place with exactly the same bug. See
dad208a "qrexec: fix pending requests cleanup code" for details.

Fixes QubesOS/qubes-issues#2699
pull/17/merge mm_8719e5d7
Marek Marczykowski-Górecki 7 years ago
parent e4cf07c107
commit 8719e5d74c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -433,7 +433,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;
}

Loading…
Cancel
Save