]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
utils/cache_gc: fix crashes/assertions on RTT entries
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 16 Mar 2021 09:39:50 +0000 (10:39 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 16 Mar 2021 10:32:10 +0000 (11:32 +0100)
commitdb85da95bed119601dee4e1ffb3fbec93081fa3d
treefcf815ea248bed0b7f4edaa66524ae3707f3fb9d
parent99e6e75427031918adeabd8da6b151a5170d3f57
utils/cache_gc: fix crashes/assertions on RTT entries

I missed some parts when finishing this.  I should've tested it better.
GC would hit assertions or NULL dereferences when removing entries,
and eventually that would lead to cache overflowing (and getting
cleared).
NEWS
utils/cache_gc/db.c
utils/cache_gc/db.h
utils/cache_gc/kr_cache_gc.c