Skip to content

Commit

Permalink
quic: fixup errant LocalVector usage
Browse files Browse the repository at this point in the history
PR-URL: #56564
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
jasnell authored and targos committed Feb 2, 2025
1 parent a9d80d4 commit 4e3052a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quic/session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2728,7 +2728,7 @@ void Session::EmitVersionNegotiation(const ngtcp2_pkt_hd& hd,

LocalVector<Value> versions(env()->isolate(), nsv);
for (size_t n = 0; n < nsv; n++) {
versions.push_back(Integer::NewFromUnsigned(env()->isolate(), sv[n]));
versions[n] = Integer::NewFromUnsigned(env()->isolate(), sv[n]);
}

// supported are the versions we acutually support expressed as a range.
Expand Down

0 comments on commit 4e3052a

Please sign in to comment.