]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2951] Fix bad concatenation to construct wildcard name (for root zone)
authorMukund Sivaraman <muks@isc.org>
Wed, 8 Jan 2014 03:08:44 +0000 (08:38 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 8 Jan 2014 03:08:44 +0000 (08:38 +0530)
src/lib/datasrc/database.cc

index 9c8505434113bf7b81d108ecfda698588a109b0e..d5d3796d557e74f492ea45cec0bbf94e99013cb1 100644 (file)
@@ -646,7 +646,7 @@ DatabaseClient::Finder::findWildcardMatch(
 
         // Strip off the left-more label(s) in the name and replace with a "*".
         const Name superdomain(name.split(i));
-        const string wildcard("*." + superdomain.toText());
+        const string wildcard(Name("*").concatenate(superdomain).toText());
         const string construct_name(name.toText());
 
         // TODO Add a check for DNAME, as DNAME wildcards are discouraged (see