[ntp:security] [Bug 527] ntpd frequently crashes on Windows systems

bugzilla at ntp.isc.org bugzilla at ntp.isc.org
Sun Nov 5 13:56:54 PST 2006


http://bugs.ntp.isc.org/527



----------------------------------------------------------------------------
Additional Comments From mayer at ntp.org (Danny Mayer)
Submitted on 2006-11-05 21:56

The following patch from Bug #604 fixes the problem that Martin is seeing with
ntpload against Windows systems. While it does not fix the specific problem
reported here it does fix that problem. Since this is across platforms we should
implement it.

--- ntp-4.2.1p241-RC/ntpd/ntp_proto.c.orig      Sun Apr 30 10:30:39 2006
+++ ntp-4.2.1p241-RC/ntpd/ntp_proto.c   Sun Apr 30 10:34:46 2006
@@ -1786,6 +1786,8 @@
        sys_stratum = STRATUM_UNSPEC;
        memcpy(&sys_refid, "DOWN", 4);
 #endif /* LOCKCLOCK */
+       for (n = 0; n < NTP_MAXASSOC; n++)
+               synch[n] = error[n] = 0.0;
        nlist = 0;
        for (n = 0; n < NTP_HASH_SIZE; n++)
                nlist += peer_hash_count[n];

Danny

-- 
Danny Mayer <mayer at ntp.org>



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the security mailing list