diff options
author | roberto <roberto@FreeBSD.org> | 2009-12-12 22:29:30 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2009-12-12 22:29:30 +0000 |
commit | 76d0d9559c6c64adb0eec290749ddb0bc85c99ec (patch) | |
tree | 5a9f13891d1608baf9ad2436ec526b57ad47d3e6 /ntpd/refclock_dumbclock.c | |
parent | c5461d7d838ecf010f9a551e548b1330f2201aaa (diff) | |
download | FreeBSD-src-76d0d9559c6c64adb0eec290749ddb0bc85c99ec.zip FreeBSD-src-76d0d9559c6c64adb0eec290749ddb0bc85c99ec.tar.gz |
Update ntp vendor code to 4.2.4p8.
This is mainly to fix CVE-2009-3563, a remote DOS.
MFC after: 3 days
Security: CVE-2009-3563
Diffstat (limited to 'ntpd/refclock_dumbclock.c')
-rw-r--r-- | ntpd/refclock_dumbclock.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ntpd/refclock_dumbclock.c b/ntpd/refclock_dumbclock.c index 2788649..10ff2cf 100644 --- a/ntpd/refclock_dumbclock.c +++ b/ntpd/refclock_dumbclock.c @@ -12,11 +12,6 @@ #include <config.h> #endif -#if defined(SYS_WINNT) -#undef close -#define close closesocket -#endif - #if defined(REFCLOCK) && defined(CLOCK_DUMBCLOCK) #include "ntpd.h" @@ -28,6 +23,12 @@ #include <stdio.h> #include <ctype.h> +#ifdef SYS_WINNT +extern int async_write(int, const void *, unsigned int); +#undef write +#define write(fd, data, octets) async_write(fd, data, octets) +#endif + /* * This driver supports a generic dumb clock that only outputs hh:mm:ss, * in local time, no less. |