aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2012-10-25 22:26:52 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2012-10-25 22:26:52 +0000
commitd97b4ec325830bee235568138ba4151edc253c54 (patch)
tree837208043a832c28468bf2692f69433067ca30a6 /plugins
parent4518ece9f954ab0e86a7c4e54c566919bb5cd1c1 (diff)
Fix problem where NTP times with the high-bit set to 0 (which RFC 2030
chapter 3 has redefined to mean years *after* 2036) were being represented as times prior to 1968. This has been broken since r35840 (apparently not many people see NTP timestamps beyond 2036 :-)): apparently I over-optimized packet-ntp's code while copying it into proto.c: that temporary variable is necessary for the unsigned math to happen correctly before assigning the result to the (signed) time_t. Leave a comment in the code indicating why the temporary variable is needed. Copy that comment to packet-ntp.c. Fix the same problem in ntp_to_nstime(): it also did not use the temporary variable. svn path=/trunk/; revision=45790
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions