Commit 8080602f authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1578] set RESULT_WILDCARD for the wildcard + NXRRSET (but name exist) case

parent d86d66e6
......@@ -822,7 +822,7 @@ struct InMemoryZoneFinder::InMemoryZoneFinderImpl {
// No exact match or CNAME. Return NXRRSET.
LOG_DEBUG(logger, DBG_TRACE_DATA, DATASRC_MEM_NXRRSET).arg(type).
arg(name);
return (FindResult(NXRRSET, ConstRRsetPtr()));
return (createFindResult(NXRRSET, ConstRRsetPtr(), rename));
}
};
......
......@@ -922,6 +922,10 @@ TEST_F(InMemoryZoneFinderTest, wildcard) {
findTest(Name("a.wild.example.org"), RRType::A(), ZoneFinder::SUCCESS,
false, rr_wild_, ZoneFinder::RESULT_WILDCARD, NULL,
ZoneFinder::FIND_DEFAULT, true);
// Wildcard match, but no data
findTest(Name("a.wild.example.org"), RRType::AAAA(),
ZoneFinder::NXRRSET, true, ConstRRsetPtr(),
ZoneFinder::RESULT_WILDCARD);
}
// Search another created name, this time little bit lower
......
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