mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 04:55:02 -05:00
Merge global request queue fix from 'pre-0.77'.
This commit is contained in:
commit
5dfd92b6ed
@ -178,6 +178,7 @@ void ssh2_queue_global_request_handler(
|
|||||||
snew(struct outstanding_global_request);
|
snew(struct outstanding_global_request);
|
||||||
ogr->handler = handler;
|
ogr->handler = handler;
|
||||||
ogr->ctx = ctx;
|
ogr->ctx = ctx;
|
||||||
|
ogr->next = NULL;
|
||||||
if (s->globreq_tail)
|
if (s->globreq_tail)
|
||||||
s->globreq_tail->next = ogr;
|
s->globreq_tail->next = ogr;
|
||||||
else
|
else
|
||||||
@ -372,6 +373,8 @@ static bool ssh2_connection_filter_queue(struct ssh2_connection_state *s)
|
|||||||
s->globreq_head = s->globreq_head->next;
|
s->globreq_head = s->globreq_head->next;
|
||||||
sfree(tmp);
|
sfree(tmp);
|
||||||
}
|
}
|
||||||
|
if (!s->globreq_head)
|
||||||
|
s->globreq_tail = NULL;
|
||||||
|
|
||||||
pq_pop(s->ppl.in_pq);
|
pq_pop(s->ppl.in_pq);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user