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

h2: allow empty SETTINGS

https://libwebsockets.org/pipermail/libwebsockets/2020-August/008676.html
This commit is contained in:
Andy Green 2020-08-26 11:06:31 +01:00
parent 43311f3289
commit c54a35e1a9

View file

@ -1116,7 +1116,7 @@ lws_h2_parse_frame_header(struct lws *wsi)
}
if (!(h2n->flags & LWS_H2_FLAG_SETTINGS_ACK)) {
if ((!h2n->length) || h2n->length % 6) {
if (h2n->length % 6) {
lws_h2_goaway(wsi, H2_ERR_FRAME_SIZE_ERROR,
"Settings length error");
break;