Skip to content

Commit c457f9e

Browse files
committed
src: cache invariant code motion
PR-URL: #53879 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Tim Perry <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent fd0da6c commit c457f9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node_http2.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1652,11 +1652,12 @@ void Http2Session::HandleSettingsFrame(const nghttp2_frame* frame) {
16521652
int32_t settings_id = iv[i].settings_id;
16531653
if (settings_id >=
16541654
IDX_SETTINGS_COUNT) { // unsupported, additional settings
1655+
auto iv_value = iv[i].value;
16551656
for (size_t j = 0; j < numsettings; ++j) {
16561657
if ((remote_custom_settings_.entries[j].settings_id & 0xFFFF) ==
16571658
settings_id) {
16581659
remote_custom_settings_.entries[j].settings_id = settings_id;
1659-
remote_custom_settings_.entries[j].value = iv[i].value;
1660+
remote_custom_settings_.entries[j].value = iv_value;
16601661
break;
16611662
}
16621663
}

0 commit comments

Comments
 (0)