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:
parent
43311f3289
commit
c54a35e1a9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue