summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-09-05 18:17:39 +0200
committerGitHub <noreply@github.com>2021-09-05 18:17:39 +0200
commitf656b0ae966052327a6341be8dee65cfd2f395b8 (patch)
tree09e16baa180811f756c4959d7736ed5c5dfdefab /src/widgets
parent9c74dc2468afbcbfb2acbee4ac6a56c7a8173529 (diff)
downloadopenttd-f656b0ae966052327a6341be8dee65cfd2f395b8.tar.xz
Fix: use-after-free after ClientNetworkCoordinatorSocketHandler::CloseAllConnections() (#9534)
The function clears all stun-handlers. This causes all of those objects to be destroyed. A handler can have a pending connecter, which was only killed in case CloseConnection() was called. This is never the case when the object is destroyed. In result, the connecter could finish and cause a use-after-free by calling into the (now deleted) handler.
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions