Browse Source

[2108] In add(), if RRset has attached RRSIGs, add them

Feeding RRSIGs with subsequent add() calls won't work as the RdataSet()
has to be constructed with the attached RRSIG.
Mukund Sivaraman 12 years ago
parent
commit
fb45c7ee68
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/datasrc/memory/memory_client.cc

+ 3 - 0
src/lib/datasrc/memory/memory_client.cc

@@ -727,6 +727,9 @@ InMemoryClient::add(const isc::dns::Name& zone_name,
     }
 
     result::Result ret(impl_->add(rrset, zone_name, *result.zone_data));
+    if ((ret == result::SUCCESS) && rrset->getRRsig()) {
+        impl_->add(rrset->getRRsig(), zone_name, *result.zone_data);
+    }
 
     // Add any last RRset that was left
     impl_->addRdataSet(zone_name, *result.zone_data,