From: Juergen Perlinger Date: Mon, 30 Mar 2015 17:39:17 +0000 (+0200) Subject: [Bug 2796] ntp-keygen crashes in 'getclock()' on Win32 X-Git-Tag: NTP_4_3_12~3^2~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0898f11036ee3bad4fa9006decfc3227564576d6;p=thirdparty%2Fntp.git [Bug 2796] ntp-keygen crashes in 'getclock()' on Win32 bk: 55198a45f1bwwn0dN7tdcsQ_IzdoEg --- diff --git a/ChangeLog b/ChangeLog index ae0be3052..3ca263849 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ --- +* [Bug 2796] ntp-keygen crashes in 'getclock()' on Win32 +--- (4.2.8p2-RC1) 2015/03/30 Released by Harlan Stenn * [Bug 1787] DCF77's formerly "antenna" bit is "call bit" since 2003. diff --git a/ports/winnt/libntp/getclock.c b/ports/winnt/libntp/getclock.c index 68496bd53..0fdcb69ba 100644 --- a/ports/winnt/libntp/getclock.c +++ b/ports/winnt/libntp/getclock.c @@ -33,6 +33,8 @@ getclock( return -1; } + if (NULL == get_sys_time_as_filetime) + init_win_precise_time(); (*get_sys_time_as_filetime)(&uNow.ft); /*