]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Prevent a cleanup race between the DOHUnit and the request pool
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 26 Jun 2020 09:50:53 +0000 (11:50 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 26 Jun 2020 16:01:52 +0000 (18:01 +0200)
commit91744388c94f3d6209513805aa86fed3fbc426d1
tree0f0c8a7bdf4008150cc5a7873341640d33221f4d
parent67b3389aed77a712016c757a91339cb03c16f840
dnsdist: Prevent a cleanup race between the DOHUnit and the request pool

- clean up the pointer in pool memory when releasing a DOHUnit so that we
  don't try to access it later when the memory pool is destroyed ;
- clean up the 'self' pointer when the memory pool is destroyed so we
  don't try to access it when the DOHUnit is released.
pdns/dnsdistdist/doh.cc
pdns/doh.hh