diff options
| author | Roy Marples <roy@marples.name> | 2020-04-19 10:41:11 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-04-19 10:41:11 +0100 |
| commit | a52bd7cdf755f4d2d6f3c0b6c2083d7ecc3f25ca (patch) | |
| tree | afd2fcc51a5eaa3ca3c07c18d10b6b6c6285765e | |
| parent | 9c81bac09510c1d45f756cd1ddbc7e7dfc9219e6 (diff) | |
| download | dhcpcd-a52bd7cdf755f4d2d6f3c0b6c2083d7ecc3f25ca.tar.xz | |
cast is not needed
| -rw-r--r-- | src/dhcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |
