]> git.ipfire.org Git - thirdparty/pdns.git/commit
Control stack depth when priming. 9267/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 22 Jun 2020 08:11:39 +0000 (10:11 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 22 Jun 2020 08:11:39 +0000 (10:11 +0200)
commitd8f3508b3c2f0085b9e5fc38255923f185bcacce
tree2464c8e3d0127c01cdc264b6160f795e8b610f14
parentf2d54e975f0187bc889063e97cb58d8c6898a24f
Control stack depth when priming.

If you clear the cache for . in a tight loop, the priming code gets
called recursively in an unbounded fashion. This keeps track of the
stack depth and ServFails if needed.
pdns/pdns_recursor.cc
pdns/recursordist/test-syncres_cc.cc
pdns/reczones.cc
pdns/syncres.cc
pdns/syncres.hh