From 62da6727ae7673c4f15a31b9b78027428455fe5c Mon Sep 17 00:00:00 2001 From: Evan Brown Date: Tue, 20 Aug 2024 09:06:08 -0700 Subject: [PATCH] Fix use-after-move bug in hash table. PiperOrigin-RevId: 665389027 --- .../ext/transport/chaotic_good/server/chaotic_good_server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/ext/transport/chaotic_good/server/chaotic_good_server.cc b/src/core/ext/transport/chaotic_good/server/chaotic_good_server.cc index f13ec98eae7..2a707602920 100644 --- a/src/core/ext/transport/chaotic_good/server/chaotic_good_server.cc +++ b/src/core/ext/transport/chaotic_good/server/chaotic_good_server.cc @@ -456,6 +456,7 @@ void ChaoticGoodServerListener::Orphan() { absl::flat_hash_set> connection_list; MutexLock lock(&mu_); connection_list = std::move(connection_list_); + connection_list_.clear(); shutdown_ = true; } ee_listener_.reset();