Skip to content

Commit 4ee8ef2

Browse files
authored
quic: prevent copying ngtcp2_cid_token
PR-URL: #48370 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 8cc1438 commit 4ee8ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quic/session.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ void Session::Destroy() {
645645

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

648-
for (auto token : tokens) {
648+
for (const auto& token : tokens) {
649649
if (token.token_present)
650650
endpoint_->DisassociateStatelessResetToken(
651651
StatelessResetToken(token.token));

0 commit comments

Comments
 (0)