mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Release 2.18.2
- [BUGFIX] Send prediction: lone path challenges do not get squeezed out - Fix crash in http_client: now -K and -B can be used simultaneously
This commit is contained in:
parent
692a91022d
commit
b329a00e5e
5 changed files with 15 additions and 14 deletions
|
@ -957,9 +957,7 @@ hset_create (void *hsi_ctx, lsquic_stream_t *stream, int is_push_promise)
|
|||
{
|
||||
struct hset *hset;
|
||||
|
||||
if (s_discard_response)
|
||||
return (void *) 1;
|
||||
else if ((hset = malloc(sizeof(*hset))))
|
||||
if ((hset = malloc(sizeof(*hset))))
|
||||
{
|
||||
STAILQ_INIT(hset);
|
||||
return hset;
|
||||
|
@ -1057,16 +1055,13 @@ hset_destroy (void *hset_p)
|
|||
struct hset *hset = hset_p;
|
||||
struct hset_elem *el, *next;
|
||||
|
||||
if (!s_discard_response)
|
||||
for (el = STAILQ_FIRST(hset); el; el = next)
|
||||
{
|
||||
for (el = STAILQ_FIRST(hset); el; el = next)
|
||||
{
|
||||
next = STAILQ_NEXT(el, next);
|
||||
free(el->xhdr.buf);
|
||||
free(el);
|
||||
}
|
||||
free(hset);
|
||||
next = STAILQ_NEXT(el, next);
|
||||
free(el->xhdr.buf);
|
||||
free(el);
|
||||
}
|
||||
free(hset);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue