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:// 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++) {
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