Commit bf8ac5b8 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

cleanup and minor efficiency improvement: copy signature data without

the byte-by-byte loop.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1085 e5f2f494-b856-4b98-b285-d166d9295462
parent 2023e1ff
......@@ -128,10 +128,8 @@ RRSIG::RRSIG(InputBuffer& buffer, size_t rdata_len)
}
rdata_len -= (buffer.getPosition() - pos);
vector<uint8_t> signature;
for (int i = 0; i < rdata_len; i++) {
signature.push_back(buffer.readUint8());
}
vector<uint8_t> signature(rdata_len);
buffer.readData(&signature[0], rdata_len);
impl_ = new RRSIGImpl(covered, algorithm, labels,
originalttl, timeexpire, timeinception, tag,
......
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