diff options
author | Francis Dupont <fdupont@isc.org> | 2024-03-05 18:44:51 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2024-03-20 00:18:24 +0100 |
commit | baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca (patch) | |
tree | f8493dc49ea33769f038b0a3c652ee540f31ff2b /src/lib/dns | |
parent | [#3211] Checkpoint: rewrote InputBuffer (diff) | |
download | kea-baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca.tar.xz kea-baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca.zip |
[#3211] Almost done
Diffstat (limited to 'src/lib/dns')
-rw-r--r-- | src/lib/dns/tests/labelsequence_unittest.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/dns/tests/labelsequence_unittest.cc b/src/lib/dns/tests/labelsequence_unittest.cc index 3fa0cc61a5..ccc5c6e153 100644 --- a/src/lib/dns/tests/labelsequence_unittest.cc +++ b/src/lib/dns/tests/labelsequence_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2020 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2012-2024 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -816,10 +816,8 @@ TEST_F(LabelSequenceTest, serialize) { // Copy wire data of the name isc::util::OutputBuffer ob(0); n_maxlabel.toWire(ob); - expected_data7.insert(expected_data7.end(), - static_cast<const uint8_t*>(ob.getData()), - static_cast<const uint8_t*>(ob.getData()) + - ob.getLength()); + expected_data7.insert(expected_data7.end(), ob.getData(), + ob.getData() + ob.getLength()); expected.push_back(DataPair(expected_data7.size(), &expected_data7[0])); // For each data set, serialize the labels and compare the data to the |