Skip to content
Snippets Groups Projects
Commit af607da0 authored by Andy Green's avatar Andy Green
Browse files

header fragment reject empty early

parent f38ad33d
No related branches found
No related tags found
No related merge requests found
...@@ -209,6 +209,9 @@ LWS_VISIBLE int lws_hdr_copy_fragment(struct lws *wsi, char *dst, int len, ...@@ -209,6 +209,9 @@ LWS_VISIBLE int lws_hdr_copy_fragment(struct lws *wsi, char *dst, int len,
int n = 0; int n = 0;
int f = wsi->u.hdr.ah->frag_index[h]; int f = wsi->u.hdr.ah->frag_index[h];
if (!f)
return -1;
while (n < frag_idx) { while (n < frag_idx) {
f = wsi->u.hdr.ah->frags[f].nfrag; f = wsi->u.hdr.ah->frags[f].nfrag;
if (!f) if (!f)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment