qrexec: fix pending requests cleanup code (cont)
There was a second place with exactly the same bug. Seedad208a
"qrexec: fix pending requests cleanup code" for details. Fixes QubesOS/qubes-issues#2699 (cherry picked from commit8719e5d74c
)
This commit is contained in:
parent
a94102c940
commit
bb88d74689
@ -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) {
|
strncmp(policy_pending[i].params.ident, buf, len) == 0) {
|
||||||
policy_pending[i].pid = 0;
|
policy_pending[i].pid = 0;
|
||||||
while (policy_pending_max > 0 &&
|
while (policy_pending_max > 0 &&
|
||||||
policy_pending[policy_pending_max].pid > 0)
|
policy_pending[policy_pending_max].pid == 0)
|
||||||
policy_pending_max--;
|
policy_pending_max--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user