Commit 5d03cd4b authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac503] Small test cleanup

* Fixed a comment
* Modified condition in MockZone to match the one in MemoryZone.
parent c8e84e56
......@@ -166,8 +166,8 @@ MockZone::find(const Name& name, const RRType& type,
return (FindResult(SUCCESS, found_rrset->second));
// If not found but the qtype is ANY, return the first RRset
if (!found_domain->second.empty() && type == RRType::ANY()) {
// If not found but we have a target, fill it with all RRsets here
if (!found_domain->second.empty() && target != NULL) {
for (found_rrset = found_domain->second.begin();
found_rrset != found_domain->second.end(); found_rrset++)
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