Commit 8c77a05c authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2512] Combine resize() call with the constructor

parent a6a6cb2e
......@@ -169,8 +169,7 @@ CAA::CAA(InputBuffer& buffer, size_t rdata_len) {
"RDATA is too short for CAA tag field");
}
vector<uint8_t> tag_vec;
tag_vec.resize(tag_length);
std::vector<uint8_t> tag_vec(tag_length);
buffer.readData(&tag_vec[0], tag_length);
std::string tag(tag_vec.begin(), tag_vec.end());
rdata_len -= tag_length;
......
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