summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/dns/rdata/generic/caa_257.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/dns/rdata/generic/caa_257.cc b/src/lib/dns/rdata/generic/caa_257.cc
index 9e6fa9bab5..7d46a57662 100644
--- a/src/lib/dns/rdata/generic/caa_257.cc
+++ b/src/lib/dns/rdata/generic/caa_257.cc
@@ -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;