]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
DHCP: Ensure we have enough data to checksum IP and UDP
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Fri, 13 Sep 2019 09:53:25 +0000 (10:53 +0100)
committerRoy Marples <roy@marples.name>
Fri, 13 Sep 2019 09:53:25 +0000 (10:53 +0100)
commitd0c03afb32adf8b75fb9192832dba79cdee43216
treed0888045bc3a46752feac3d36c50f62254c26296
parent49d5623c091852e1aa4ed68404035ff6dcca4587
DHCP: Ensure we have enough data to checksum IP and UDP

While here, only skip UDP checksum after we have verified we
have enough data to be doubly sure.

Fixes a regression introduced in dhcpcd-7.2.0 when we started
to read from the UDP socket rather than just the BPF socket
where these checks are already made.
src/dhcp.c