]> git.ipfire.org Git - thirdparty/pdns.git/commit
Use correct logic for isEntryUsable() 12347/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 20 Dec 2022 11:30:54 +0000 (12:30 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 20 Dec 2022 11:30:54 +0000 (12:30 +0100)
commit24f2f86f94f685bba01a8a10b2a1f3185ba3cff1
tree75d39167f30a391c8b71e65963e011dc8063aac9
parent9d80995d5dc6c4ef63ec6855bf637ee72e1dc76c
Use correct logic for isEntryUsable()

Existing code was correct but used the wrong name for the method:
isEntryUsable() actually tested for isUnusable, but the caller
compensated for it. Reverse logic to make it more clear.
pdns/recursordist/recursor_cache.cc
pdns/recursordist/recursor_cache.hh