src/core/config.cc
changeset 4142 59f784af5db6
parent 4139 d45e62c78504
child 4143 7f7823a31f77
--- a/src/core/config.cc	Tue Jan 20 18:29:06 2009 -0800
+++ b/src/core/config.cc	Tue Jan 20 18:56:33 2009 -0800
@@ -332,8 +332,15 @@
 
   //
   // We're done with the object name service hooks, so proceed down the path
-  // of types and attributes.
+  // of types and attributes; but only if root is nonzero.  If root is zero
+  // and we find ourselves here, we are trying to check in the namespace for
+  // a path that is not in the "/Names" namespace.  We will have previously
+  // found any matches, so we just bail out.
   //
+  if (root == 0)
+    {
+      return;
+    }
   std::string::size_type dollarPos = item.find ("$");
   if (dollarPos == 0)
     {