]> git.ipfire.org Git - thirdparty/pdns.git/commit
channel: Transfer the object to a local pointer before sending it
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 22 Dec 2022 09:25:00 +0000 (10:25 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 Jun 2023 07:59:45 +0000 (09:59 +0200)
commit465d1e15f1e511fe5eb80e426a18005297892bec
tree414b3c03371668a13b3b0d4b87ed2f19646871e2
parent3084c593328d2cbe0513ae30edbaf1c16c977260
channel: Transfer the object to a local pointer  before sending it

Even calling release() on the initial unique_ptr after sending the
object could cause a use-after-free, as the unique_ptr might have
been destroyed in the meantime.
pdns/channel.hh