mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
b17fb99228
ping(8) uses SO_TIMESTAMP, which attaches a timestamp to each IP datagram at the time it's received by the kernel. Except that occasionally it doesn't. Add a check to see whether such a timestamp was actually set before trying to read it. This fixes segfaults that can happen when the kernel doesn't attach a timestamp. The bug has always existed, but prior to r351461 it manifested as an implausible round-trip-time, not a segfault. Reported by: pho MFC after: 3 days MFC-With: 351461 |
||
---|---|---|
.. | ||
tests | ||
Makefile | ||
Makefile.depend | ||
ping.8 | ||
ping.c | ||
utils.c | ||
utils.h |