From: Sergei Trofimovich Date: Wed, 16 Oct 2019 21:52:26 +0000 (+0100) Subject: DHCP: Fix prior to not waste space X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f77022dbce8890eb5c6597af99490852aa4cd5ec;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,