summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-19 10:41:11 +0100
committerRoy Marples <roy@marples.name>2020-04-19 10:41:11 +0100
commita52bd7cdf755f4d2d6f3c0b6c2083d7ecc3f25ca (patch)
treeafd2fcc51a5eaa3ca3c07c18d10b6b6c6285765e
parent9c81bac09510c1d45f756cd1ddbc7e7dfc9219e6 (diff)
downloaddhcpcd-a52bd7cdf755f4d2d6f3c0b6c2083d7ecc3f25ca.tar.xz
cast is not needed
-rw-r--r--src/dhcp.c2
1 files changed, 1 insertions, 1 deletions
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. */