Browse Source

simplified the flag handling logic, based on a review comment.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac463@4107 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 14 years ago
parent
commit
56adb44d6c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/lib/datasrc/memory_datasrc.cc

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

@@ -169,7 +169,10 @@ struct MemoryZone::MemoryZoneImpl {
             // double check for it?
             state->zonecut_node_ = &node;
             state->rrset_ = found->second;
-            return ((state->options_ & FIND_GLUE_OK) != 0 ? false : true);
+
+            // Unless glue is allowed the search stops here, so we return
+            // false; otherwise return true to continue the search.
+            return ((state->options_ & FIND_GLUE_OK) == 0);
         }
 
         // This case should not happen because we enable callback only