diff options
author | Francis Dupont <fdupont@isc.org> | 2016-03-14 20:04:45 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2016-03-14 20:04:45 +0100 |
commit | 299e383520ff5f51a960faff0f8bc40887b8db34 (patch) | |
tree | fddfc8826895856ee62397fdaae9c9752e20be64 /src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc | |
parent | [4326] Fixed Coverity CID 1232320 (diff) | |
download | kea-299e383520ff5f51a960faff0f8bc40887b8db34.tar.xz kea-299e383520ff5f51a960faff0f8bc40887b8db34.zip |
[4326] Fixed Coverity CID 1327378 (needs a second view)
Diffstat (limited to 'src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc')
-rw-r--r-- | src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc b/src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc index 817fa6e02f..5ec8da9672 100644 --- a/src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc +++ b/src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-2016 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 @@ -1854,7 +1854,7 @@ void ExpirationAllocEngine4Test::setUniqueClientId(const uint16_t index) { std::ostringstream clientid_s; clientid_s << "AA:BB:" << std::setw(2) << std::setfill('0') - << (index >> 16) << ":" << std::setw(2) << std::setfill('0') + << (index >> 8) << ":" << std::setw(2) << std::setfill('0') << (index & 0x00FF); ClientIdPtr client_id(ClientId::fromText(clientid_s.str())); leases_[index]->client_id_ = client_id; |