1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +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 6cf2350205
commit 87c83ab129

View file

@ -1106,7 +1106,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;