Commit 20173b5f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

NGHTTP2_SETTINGS_FLOW_CONTROL_OPTIONS: Check least significant bit only

parent 90b06e85
...@@ -1991,7 +1991,7 @@ int nghttp2_session_on_settings_received(nghttp2_session *session, ...@@ -1991,7 +1991,7 @@ int nghttp2_session_on_settings_received(nghttp2_session *session,
} }
break; break;
case NGHTTP2_SETTINGS_FLOW_CONTROL_OPTIONS: case NGHTTP2_SETTINGS_FLOW_CONTROL_OPTIONS:
if(entry->value == 1) { if(entry->value & 0x1) {
if(session->remote_settings[entry->settings_id] == 0) { if(session->remote_settings[entry->settings_id] == 0) {
rv = nghttp2_session_disable_flow_control(session); rv = nghttp2_session_disable_flow_control(session);
if(rv != 0) { if(rv != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment