NGHTTP2_SETTINGS_FLOW_CONTROL_OPTIONS: Check least significant bit only

This commit is contained in:
Tatsuhiro Tsujikawa 2013-07-26 23:11:41 +09:00
parent 90b06e8572
commit 20173b5f61
1 changed files with 1 additions and 1 deletions

View File

@ -1991,7 +1991,7 @@ int nghttp2_session_on_settings_received(nghttp2_session *session,
}
break;
case NGHTTP2_SETTINGS_FLOW_CONTROL_OPTIONS:
if(entry->value == 1) {
if(entry->value & 0x1) {
if(session->remote_settings[entry->settings_id] == 0) {
rv = nghttp2_session_disable_flow_control(session);
if(rv != 0) {