]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Prevent a crash when exiting nicely 15332/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Mar 2025 13:15:47 +0000 (14:15 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Mar 2025 13:15:47 +0000 (14:15 +0100)
commit1cf3dc3b104d715570b4c93452a5f26727793891
tree604ebe7990a48ce3f1150571aa77a84821d274de
parent670abf67f2ac9d6c77eabd9527fabc765292894c
rec: Prevent a crash when exiting nicely

If a TCP connection is alive when we are exiting, we might dereference
a `null` pointer when the TCP connection destructor is called after
the thread-local `t_tcpClientCounts` object has been destroyed.
pdns/recursordist/rec-tcp.cc