]> granicus.if.org Git - pdns/commit
SuffixMatchTree: Fix partial match of non-leaf nodes
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 7 Jun 2019 10:21:00 +0000 (12:21 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 19 Jun 2019 12:21:31 +0000 (14:21 +0200)
commit3679f4cb5f4397130d8acb67982d293a06a2a9b9
tree8d205df2e12b81860c6e98c92891592d1f753934
parentc7871d61ca3da29cda03e44e9485d79674266ba9
SuffixMatchTree: Fix partial match of non-leaf nodes

If we insert fr and www.domain.fr, domain.fr should not match
www.domain.fr, the leaf node, and it should not match the
intermediary domain.fr node, but it should match the fr
end-node.

(cherry picked from commit 99517c1b39226e50e1eb1a5a6509844fb57e9e68)
pdns/dnsname.hh
pdns/test-dnsname_cc.cc