Skip to content

Commit

Permalink
quic: prevent copying ngtcp2_cid_token
Browse files Browse the repository at this point in the history
PR-URL: #48370
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
tniessen committed Jun 11, 2023
1 parent 8cc1438 commit 4ee8ef2
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 @@ -645,7 +645,7 @@ void Session::Destroy() {

for (auto cid : cids) endpoint_->DisassociateCID(CID(&cid));

for (auto token : tokens) {
for (const auto& token : tokens) {
if (token.token_present)
endpoint_->DisassociateStatelessResetToken(
StatelessResetToken(token.token));
Expand Down

0 comments on commit 4ee8ef2

Please sign in to comment.