]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix a small race in the NetworkListener
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 7 Dec 2023 14:08:37 +0000 (15:08 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Dec 2023 07:44:56 +0000 (08:44 +0100)
commitcbef7c4c68b319d21ebab4150d2a44b39eec53c7
tree4a568fc63f63f087fd5b5f4207f36ed1428e9457
parent9a7cae3e11171b498c970c0f19d01629a3e76280
dnsdist: Fix a small race in the NetworkListener

The main thread needs to be able to access the data even if the
NetworkListener object has been destroyed first, which usually only
happens when DNSdist is exiting, but could also happen earlier if
the Lua handle is garbage collected.
pdns/dnsdistdist/dnsdist-lua-network.cc
pdns/dnsdistdist/dnsdist-lua-network.hh