header fragment reject empty early
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
243a04efcb
commit
5344b20c43
1 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,9 @@ LWS_VISIBLE int lws_hdr_copy_fragment(struct lws *wsi, char *dst, int len,
|
|||
int n = 0;
|
||||
int f = wsi->u.hdr.ah->frag_index[h];
|
||||
|
||||
if (!f)
|
||||
return -1;
|
||||
|
||||
while (n < frag_idx) {
|
||||
f = wsi->u.hdr.ah->frags[f].nfrag;
|
||||
if (!f)
|
||||
|
|
Loading…
Add table
Reference in a new issue