]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4326] Fixed Coverity CID 1327378 (needs a second view)
authorFrancis Dupont <fdupont@isc.org>
Mon, 14 Mar 2016 19:04:45 +0000 (20:04 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 14 Mar 2016 19:04:45 +0000 (20:04 +0100)
src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc

index 817fa6e02fa981f986d762d265880c33e394d457..5ec8da967289090fcae020ed6fd87f25ec80526e 100644 (file)
@@ -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;