diff options
| author | fox <fox@netbsd.org> | 2020-02-07 14:13:59 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-02-07 14:13:59 +0000 |
| commit | 690a9c3080708e958ec52341a26f33aa961dbf13 (patch) | |
| tree | c17ab0d9d489b84efb35603f3406893981d11d77 | |
| parent | ee8903a11073a41364875c1a4d20969a0e086666 (diff) | |
| download | dhcpcd-690a9c3080708e958ec52341a26f33aa961dbf13.tar.xz | |
dhcp: Cast away a compile warning
| -rw-r--r-- | src/dhcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3307,7 +3307,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 + ntohs(udp.uh_ulen) > plen) + if (ip_hlen + (size_t)ntohs(udp.uh_ulen) > plen) return false; /* Check it's to and from the right ports. */ |
