From: Sergei Trofimovich Date: Wed, 16 Oct 2019 21:52:26 +0000 (+0100) Subject: DHCP: Fix prior to not waste space X-Git-Tag: v8.1.2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8803da949b50d25f3e93e47dfee66378a428e25;p=thirdparty%2Fdhcpcd.git DHCP: Fix prior to not waste space --- diff --git a/src/dhcp.c b/src/dhcp.c index f0db3cca..fb346299 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -3315,7 +3315,7 @@ checksums_valid(void *packet, struct ip *ip = packet; union pip { struct ip ip; - uint16_t w[sizeof(struct ip)]; + uint16_t w[sizeof(struct ip) / 2]; } pip = { .ip.ip_p = IPPROTO_UDP, .ip.ip_src = ip->ip_src,