]> git.ipfire.org Git - thirdparty/pdns.git/commit
Only assign to the arguments of get if the entry is not expired.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 23 Oct 2023 09:48:54 +0000 (11:48 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 23 Oct 2023 09:48:54 +0000 (11:48 +0200)
commit48706cbeac94891578acf14db2764c7a01f6dd10
tree4451952e031d07834289b69bbbc7b37ac211a749
parenta6465c8816408132615127ca35b5c8f5b6c02ae6
Only assign to the arguments of get if the entry is not expired.

Callers of get() *must* ensure they onluy look at the args if get() returned > 0

Implements #12612 for the record cache. Negcache fill follow later.
pdns/recursordist/recursor_cache.cc
pdns/recursordist/recursor_cache.hh