Commit 986bddd7 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

fix for NXDOMAIN becomes NOERROR

Copy the actual rcode from the response into our answer (it always set
NOERROR, so this should also work for other rcodes)
parent 0e1d792f
...@@ -260,6 +260,7 @@ public: ...@@ -260,6 +260,7 @@ public:
Message incoming(Message::PARSE); Message incoming(Message::PARSE);
InputBuffer ibuf(buffer->getData(), buffer->getLength()); InputBuffer ibuf(buffer->getData(), buffer->getLength());
incoming.fromWire(ibuf); incoming.fromWire(ibuf);
for_each(incoming.beginSection(Message::SECTION_ANSWER), for_each(incoming.beginSection(Message::SECTION_ANSWER),
incoming.endSection(Message::SECTION_ANSWER), incoming.endSection(Message::SECTION_ANSWER),
SectionInserter(message, Message::SECTION_ANSWER)); SectionInserter(message, Message::SECTION_ANSWER));
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