Commit 5e84742d authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2094] (unrelated fix) NAPTR replacement shouldn't be compressed per RFC3597.

parent f2b0b4fd
......@@ -125,11 +125,16 @@ NAPTR::NAPTR(const NAPTR& naptr):
void
NAPTR::toWire(OutputBuffer& buffer) const {
toWireHelper(buffer);
replacement_.toWire(buffer);
}
void
NAPTR::toWire(AbstractMessageRenderer& renderer) const {
toWireHelper(renderer);
// Type NAPTR is not "well-known", and name compression must be disabled
// per RFC3597.
renderer.writeName(replacement_, false);
}
string
......
......@@ -62,8 +62,6 @@ private:
outputer.writeUint8(regexp_.size());
outputer.writeData(regexp_.c_str(), regexp_.size());
replacement_.toWire(outputer);
}
uint16_t order_;
......
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