[PATCH] Fix the "NTPv7" bug

Paul Marks paul at pmarks.net
Mon Nov 26 03:22:35 UTC 2012


When using busybox ntpd with an NTPv3 client and NTPv4 server (or vice
versa), the version numbers can be ORed together, yielding the bogus
value 7.

This 1-line patch ensures that only the Leap Indicator bits are copied
from the server status.

I've done before/after tests with Chrony and Windows 7's "Internet
Time" feature, and this patch fixed both cases.

Related bug:
https://bugs.busybox.net/show_bug.cgi?id=5120
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox_ntpv7_bug.patch
Type: application/octet-stream
Size: 547 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20121125/a2865077/attachment.obj>


More information about the busybox mailing list