diff --git a/lib/roles/h2/http2.c b/lib/roles/h2/http2.c index a953a02f1..d819a0f5c 100644 --- a/lib/roles/h2/http2.c +++ b/lib/roles/h2/http2.c @@ -490,7 +490,7 @@ lws_h2_settings(struct lws *wsi, struct http2_settings *settings, "Frame size < initial"); return 1; } - if (b > 0x007fffff) { + if (b > 0x00ffffff) { lws_h2_goaway(nwsi, H2_ERR_PROTOCOL_ERROR, "Settings Frame size above max"); return 1;