From: Roy Marples Date: Sun, 19 Apr 2020 09:41:11 +0000 (+0100) Subject: cast is not needed X-Git-Tag: v8.1.9~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a52bd7cdf755f4d2d6f3c0b6c2083d7ecc3f25ca;p=thirdparty%2Fdhcpcd.git cast is not needed --- diff --git a/src/dhcp.c b/src/dhcp.c index ac2c6ea7..95872033 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -3308,7 +3308,7 @@ is_packet_udp_bootp(void *packet, size_t plen) memcpy(&udp, (char *)ip + ip_hlen, sizeof(udp)); if (ntohs(udp.uh_ulen) < sizeof(udp)) return false; - if (ip_hlen + (size_t)ntohs(udp.uh_ulen) > plen) + if (ip_hlen + ntohs(udp.uh_ulen) > plen) return false; /* Check it's to and from the right ports. */