From: Remi Gacogne Date: Fri, 14 Jun 2019 12:02:27 +0000 (+0200) Subject: SuffixMatchTree: Remove useless code duplication X-Git-Tag: dnsdist-1.4.0-rc1~122^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7886%2Fhead;p=thirdparty%2Fpdns.git SuffixMatchTree: Remove useless code duplication --- diff --git a/pdns/dnsname.hh b/pdns/dnsname.hh index f9e1d0ba30..581c0d4926 100644 --- a/pdns/dnsname.hh +++ b/pdns/dnsname.hh @@ -336,11 +336,7 @@ struct SuffixMatchTree return nullptr; } - auto result = lookup(name.getRawLabels()); - if (result) { - return result; - } - return endNode ? &d_value : nullptr; + return lookup(name.getRawLabels()); } T* lookup(std::vector labels) const