Commit 8b51e48c authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1574b] added a comment about why ZoneData::origin_data_ is safe to access

in InMemoryZoneFinder::load()
parent f2ae6da3
......@@ -927,7 +927,10 @@ InMemoryZoneFinder::load(const string& filename) {
// If the zone is NSEC3-signed, check if it has NSEC3PARAM
if (tmp->nsec3_data_) {
assert(!tmp->origin_data_->isEmpty());
// Note: origin_data_ is set on creation of ZoneData, and the load
// process only adds new nodes (and their data), so this assertion
// should hold.
assert(tmp->origin_data_ != NULL && !tmp->origin_data_->isEmpty());
if (tmp->origin_data_->getData()->find(RRType::NSEC3PARAM()) ==
tmp->origin_data_->getData()->end()) {
LOG_WARN(logger, DATASRC_MEM_NO_NSEC3PARAM).
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment