]> granicus.if.org Git - pdns/commit
dnsdist: Implement ref counting for the DOHUnit object
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 14 Oct 2019 14:18:46 +0000 (16:18 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 14 Oct 2019 14:18:46 +0000 (16:18 +0200)
commit041ab34a793182945c398e964d0a7e6a4e43125c
tree0728f2caa338e98d563ce4e2294abfbf0282463a
parent127775bcfe95ba855a98f4db2a0810975d7ad09d
dnsdist: Implement ref counting for the DOHUnit object

It turns out that, at least when testing with ASAN enabled, we
sometimes trigger use-after-free detection because we get the
response from the backend, send it to the client then delete the
object before the send() call to the backend even returned.
pdns/dnsdistdist/doh.cc
pdns/doh.hh