Browse Source

[trac551] Mark the correct node on load

We don't need the *.wild.example.org node marked. We need
wild.example.org.
Michal 'vorner' Vaner 14 years ago
parent
commit
5607fdf2ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/datasrc/memory_datasrc.cc

+ 1 - 1
src/lib/datasrc/memory_datasrc.cc

@@ -103,13 +103,13 @@ struct MemoryZone::MemoryZoneImpl {
                 result = domains.insert(wname.split(1), &node);
                 result = domains.insert(wname.split(1), &node);
                 assert(result == DomainTree::SUCCESS ||
                 assert(result == DomainTree::SUCCESS ||
                        result == DomainTree::ALREADYEXISTS);
                        result == DomainTree::ALREADYEXISTS);
+                node->setFlag(DOMAINFLAG_WILD);
 
 
                 // Ensure a separate level exists for the "wildcarding" name,
                 // Ensure a separate level exists for the "wildcarding" name,
                 // and mark the node as "wild".
                 // and mark the node as "wild".
                 result = domains.insert(wname, &node);
                 result = domains.insert(wname, &node);
                 assert(result == DomainTree::SUCCESS ||
                 assert(result == DomainTree::SUCCESS ||
                        result == DomainTree::ALREADYEXISTS);
                        result == DomainTree::ALREADYEXISTS);
-                node->setFlag(DOMAINFLAG_WILD);
             }
             }
         }
         }
     }
     }