From f2fce0e42bec533e697c43342441b1eaed5e3bc2 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Sat, 22 Jun 2019 22:24:55 +0200 Subject: [PATCH] [690-bad-ip-length-header-error-misformats-number] Added a cast for uint8_t ip_len output --- src/lib/dhcp/protocol_util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.47.2