diff options
author | Mukund Sivaraman <muks@isc.org> | 2014-02-18 06:16:09 +0100 |
---|---|---|
committer | Mukund Sivaraman <muks@isc.org> | 2014-02-18 06:16:09 +0100 |
commit | 8c77a05c8564a26113933d9cba6d5019cf1e75eb (patch) | |
tree | c3df5dfdfd99519d720cefa592947047a3cedbbc /src/lib/dns/rdata | |
parent | [2512] Use CharStringData when constructing from parameters too (diff) | |
download | kea-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.cc | 3 |
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; |