]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
SuffixMatchTree: Remove useless code duplication 7886/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 14 Jun 2019 12:02:27 +0000 (14:02 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 14 Jun 2019 12:02:27 +0000 (14:02 +0200)
pdns/dnsname.hh

index f9e1d0ba30b1c7ea4773014dbbc1284aa77c2654..581c0d49268fade7583ffb395f698e8c29ceebfc 100644 (file)
@@ -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<std::string> labels) const