]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2796] ntp-keygen crashes in 'getclock()' on Win32
authorJuergen Perlinger <perlinger@ntp.org>
Mon, 30 Mar 2015 17:39:17 +0000 (19:39 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Mon, 30 Mar 2015 17:39:17 +0000 (19:39 +0200)
bk: 55198a45f1bwwn0dN7tdcsQ_IzdoEg

ChangeLog
ports/winnt/libntp/getclock.c

index ae0be3052f03382d1e8e4f9c51879c09009e8820..3ca263849d54ca569f3f6802307dcca046d1bf2c 100644 (file)
--- 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 <stenn@ntp.org>
 
 * [Bug 1787] DCF77's formerly "antenna" bit is "call bit" since 2003.
index 68496bd530782331c57c179c2577ddfaebf2a38b..0fdcb69ba7e87ac837602a95c2fe33607310ea37 100644 (file)
@@ -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);
 
        /*