Parcourir la 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 il y a 14 ans
Parent
commit
56adb44d6c
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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