]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
iterate: be more precise when detecting CNAME loops
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 12 Jun 2017 13:40:02 +0000 (15:40 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 12 Jun 2017 14:11:35 +0000 (16:11 +0200)
commitac92745d611d11f4eed12ae278eb90cf3cc422c8
tree4adf1e1bd9ebc16c9a467bc8a5490b81a0d92b4a
parenta3306b09ac475f125150d66a1b1f0388fbbda353
iterate: be more precise when detecting CNAME loops

Iterating over sibling sub-queries isn't precise enough,
and in particular in forwarding mode it reported non-existing loops.

Example ATM: www.dpo.cz - there forwarding spawns multiple sub-queries,
and one of those is a CNAME to another of them.  Due to them being siblings,
the old code misdetected that as a CNAME loop.  Now that we have these
cname_parent pointers, we can do a precise detection.
lib/layer/iterate.c
lib/rplan.h