mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Fix uninitialized variable use in http_client
Thanks, Travis!
This commit is contained in:
parent
a5fa05f958
commit
e57d2b2724
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -1034,6 +1035,9 @@ hset_prepare_decode (void *hset_p, struct lsxpack_header *xhdr,
|
||||||
el->nalloc = 0;
|
el->nalloc = 0;
|
||||||
xhdr = &el->xhdr;
|
xhdr = &el->xhdr;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
el = (struct hset_elem *) ((char *) xhdr
|
||||||
|
- offsetof(struct hset_elem, xhdr));
|
||||||
|
|
||||||
if (min_space > el->nalloc)
|
if (min_space > el->nalloc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue