Mercurial > hg > dhcpcd
changeset 5154:f6dc9654ac6b draft
cast is not needed
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 19 Apr 2020 10:41:11 +0100 |
| parents | 51826b863d4c |
| children | 9a50ab509182 |
| files | src/dhcp.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp.c Sun Apr 12 18:56:11 2020 +0100 +++ b/src/dhcp.c Sun Apr 19 10:41:11 2020 +0100 @@ -3308,7 +3308,7 @@ 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. */
