]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[690-bad-ip-length-header-error-misformats-number] Added a cast for uint8_t ip_len... 690-bad-ip-length-header-error-misformats-number
authorFrancis Dupont <fdupont@isc.org>
Sat, 22 Jun 2019 20:24:55 +0000 (22:24 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 4 Jul 2019 14:47:00 +0000 (10:47 -0400)
src/lib/dhcp/protocol_util.cc

index d4fda21ed7d11fc4a51d148cdc10e4279a5ebebd..da4251193cb3f1b64c1599a99cbbca195f40e2bb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2019 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
@@ -88,7 +88,7 @@ decodeIpUdpHeader(InputBuffer& buf, Pkt4Ptr& pkt) {
     if (ip_len < 5) {
         isc_throw(InvalidPacketHeader, "Value of the length of the IP header must not be"
                   << " lower than 5 words. The length of the received header is "
-                  << ip_len << ".");
+                  << static_cast<unsigned>(ip_len) << ".");
     }
 
     // Seek to the position of source IP address.