Commit f1bb311e authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[master] trivial fix in fake priming, needs Rcode set now, skipped review

parent 759761fd
......@@ -30,6 +30,7 @@
#include <exceptions/exceptions.h>
#include <dns/buffer.h>
#include <dns/rcode.h>
#include <dns/message.h>
#include <dns/messagerenderer.h>
......@@ -180,6 +181,7 @@ main(int argc, char* argv[]) {
isc::dns::RRClass::IN(),
"2001:500:3::42"));
isc::dns::MessagePtr priming_result(new isc::dns::Message(isc::dns::Message::RENDER));
priming_result->setRcode(isc::dns::Rcode::NOERROR());
priming_result->addQuestion(root_question);
priming_result->addRRset(isc::dns::Message::SECTION_ANSWER, root_ns_rrset);
priming_result->addRRset(isc::dns::Message::SECTION_ADDITIONAL, root_a_rrset);
......
Markdown is supported
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