mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 02:08:24 +00:00
06e2d479c935d15f08146f981605773a1e7e1e6f
get_new_frec() garbage collects struct frec when they are (by default) 40s old. This means that in an active dnsmasq which is getting new queries, answers to old queries start to be ignored soon after they hit 40s old. If there are no new queries, get_new_frec() doesn't get called, and answers to old queries will still be accepted for longer. This patch stops lookup_frec() from returning old frecs which are ready for GC. This helps avoid yet another variation on the birthday attack, which is no particularly relevant, given the need for an idle server.
Description
No description provided
Languages
C
94.2%
Perl
2.3%
HTML
1.2%
Shell
1.1%
Makefile
0.6%
Other
0.6%