1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

http: skip NULs between fragments

This commit is contained in:
Andy Green 2018-06-19 13:32:15 +08:00
parent bdedd1a910
commit 635ecb450c

View file

@ -789,7 +789,7 @@ lws_parse_urldecode(struct lws *wsi, uint8_t *_c)
ah->nfrag++;
if (ah->nfrag >= ARRAY_SIZE(ah->frags))
goto excessive;
ah->frags[ah->nfrag].offset = ah->pos;
ah->frags[ah->nfrag].offset = ++ah->pos;
ah->frags[ah->nfrag].len = 0;
ah->frags[ah->nfrag].nfrag = 0;