From: Francis Dupont Date: Sat, 22 Jun 2019 20:24:55 +0000 (+0200) Subject: [690-bad-ip-length-header-error-misformats-number] Added a cast for uint8_t ip_len... X-Git-Tag: Kea-1.6.0-beta2~129 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f2fce0e42bec533e697c43342441b1eaed5e3bc2;p=thirdparty%2Fkea.git [690-bad-ip-length-header-error-misformats-number] Added a cast for uint8_t ip_len output --- diff --git a/src/lib/dhcp/protocol_util.cc b/src/lib/dhcp/protocol_util.cc index d4fda21ed7..da4251193c 100644 --- a/src/lib/dhcp/protocol_util.cc +++ b/src/lib/dhcp/protocol_util.cc @@ -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(ip_len) << "."); } // Seek to the position of source IP address.