From b7eac548479e0fb5630ba08ad8070aee749889da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 11 Jun 2023 12:07:59 +0200 Subject: [PATCH] quic: prevent copying ngtcp2_cid_token PR-URL: https://github.com/nodejs/node/pull/48370 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca --- src/quic/session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quic/session.cc b/src/quic/session.cc index dd5a992d55275c..829829a0679f7f 100644 --- a/src/quic/session.cc +++ b/src/quic/session.cc @@ -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));