summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/rdata
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@isc.org>2014-02-18 06:16:09 +0100
committerMukund Sivaraman <muks@isc.org>2014-02-18 06:16:09 +0100
commit8c77a05c8564a26113933d9cba6d5019cf1e75eb (patch)
treec3df5dfdfd99519d720cefa592947047a3cedbbc /src/lib/dns/rdata
parent[2512] Use CharStringData when constructing from parameters too (diff)
downloadkea-8c77a05c8564a26113933d9cba6d5019cf1e75eb.tar.xz
kea-8c77a05c8564a26113933d9cba6d5019cf1e75eb.zip
[2512] Combine resize() call with the constructor
Diffstat (limited to 'src/lib/dns/rdata')
-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;