Merge remote-tracking branch 'qubesos/pr/83'
* qubesos/pr/83: qrexec: fix infinite loop when multiple services are waiting for GUI
This commit is contained in:
commit
a8aa41e040
@ -624,8 +624,8 @@ void handle_server_exec_request_init(struct msg_header *hdr)
|
|||||||
|
|
||||||
if (hdr->type != MSG_SERVICE_CONNECT && wait_for_session_maybe(buf)) {
|
if (hdr->type != MSG_SERVICE_CONNECT && wait_for_session_maybe(buf)) {
|
||||||
/* waiting for session, postpone actual call */
|
/* waiting for session, postpone actual call */
|
||||||
int slot_index = 0;
|
int slot_index;
|
||||||
while (slot_index < MAX_FDS)
|
for (slot_index = 0; slot_index < MAX_FDS; slot_index++)
|
||||||
if (!requests_waiting_for_session[slot_index].cmdline)
|
if (!requests_waiting_for_session[slot_index].cmdline)
|
||||||
break;
|
break;
|
||||||
if (slot_index == MAX_FDS) {
|
if (slot_index == MAX_FDS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user