]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Fix a potential null deref in MTasker::schedule()
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 9 Jan 2024 08:39:28 +0000 (09:39 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 9 Jan 2024 08:39:28 +0000 (09:39 +0100)
commitc87f0741af247ae1de9669f7a7974c40aa0509ef
tree1e5b916e8c576c4b772f70573635424ecbedb2e9
parent369b105a1b8292ae3fcc7b1e424e944e8d6c3e13
rec: Fix a potential null deref in MTasker::schedule()

The bug is located in a part of the code that we never actually
use since we always pass the current time to the function, so
I decided to reduce the complexity by making this parameter mandatory.

Reported by Coverity as CID 1533199.
pdns/recursordist/mtasker.hh
pdns/recursordist/rec-main.cc
pdns/recursordist/test-mtasker.cc