Commit Graph

182 Commits

Author SHA1 Message Date
christos f1b28409da ctime can return NULL 2010-04-04 01:36:03 +00:00
christos f7cd580182 check ctime return 2010-04-02 21:33:14 +00:00
christos d80643a1f0 remove bogus cast that hides bugs if tv_sec is non POSIX compliant. 2010-04-02 15:38:05 +00:00
kardel 142d831562 Merge ntp 4.2.4p8 2009-12-08 21:52:05 +00:00
kardel 8d09e35dad Import ntp 4.2.4p8 2009-12-08 20:41:03 +00:00
christos 2ba3b8f193 constify for new openssl 2009-07-20 18:44:09 +00:00
apb 97f740f02b Add missing close quote in a usually-unreached part of an #if block.
Part of PR 41255 from Kurt Lidl.
2009-07-14 20:56:12 +00:00
kardel 4a186c8fa5 resolve import ntp-4-2-4p7 2009-06-13 12:02:07 +00:00
kardel be2dbc8357 Import ntp 4.2.4p7 2009-06-13 09:17:42 +00:00
christos 91805f2d22 Fix CVE-2009-1252: Buffer overflow in ntpd crypto code. A remote
attacker can send a specially constructed request packet that would
overflow the sprintf()'ed buffer causing ntpd to crash.

XXX: Pullup to 5.x
2009-05-20 01:37:36 +00:00
christos 39a569fdc2 Fix:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2009-0159
Using:
    https://support.ntp.org/bugs/show_bug.cgi?id=1144
XXX: Pullup to 5.x
2009-04-17 02:45:55 +00:00
christos b01113f755 use the proper status variable. 2009-04-05 17:33:11 +00:00
drochner 7cd24411fd Make ntpd drop supplementary group memberships when dropping privileges
due to a "-u" option.
(There is a bug report to the subcect in ntp's bugzilla, listed
as "closed", almost two years old. Don't know what happed. My patch
is not derived from that one because the code changed.)
2009-02-03 12:51:13 +00:00
kardel 300f8f3036 merge ntp 4.2.4p6 2009-01-08 20:09:03 +00:00
kardel 0fee6ba94f Import ntp 4.2.4p6 2009-01-08 19:17:53 +00:00
drochner bba265ee2d try to fix CVE-2009-0021 (incorrect check of EVP_VerifyFinal()'s
return value)
(This is not an official patch and possible incomplete.)
2009-01-08 14:50:56 +00:00
christos bb7e3aa272 fixes for 64 bit time_t 2008-12-28 22:56:57 +00:00
christos 442ef04263 trust me, malloc's argument is size_t not u_int. 2008-12-23 20:49:39 +00:00
christos a3e8ad6af0 make status humanly parsable. 2008-12-23 20:49:19 +00:00
kardel 1f18cb938c resolve ntp 4.2.4p5 import 2008-08-23 09:10:31 +00:00
kardel 835928de57 Import ntp 4.2.4p5 2008-08-23 07:38:09 +00:00
kardel fbcf7d7188 make mkver fetch the date information from src/usr.sbin/ntp/importdate
in order to achieve consistent version strings across all builds
2008-07-16 20:53:56 +00:00
perry c983ff2507 explain that mkver needs cleanup when a new version is imported
as per suggestion from simon
2008-07-16 11:11:37 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
matt 28dacb0e3a Fix a new bugs that -combine found 2008-02-20 18:16:09 +00:00
ghen 45f483d712 Remove CVS $Log$ tag, this got problematic when pulled up to netbsd-4. 2007-08-21 13:17:24 +00:00
kardel 9e20ecb745 track upcoming fix for NTP-Bug 889 (avoid calling malloc()
during SIGIO handling)
2007-08-18 13:18:23 +00:00
kardel a097fb65eb pick up upcoming fixes from NTP-Bug 885 2007-08-18 09:56:13 +00:00
kardel 55ae27e368 revert a local fix - not necessary any more
created and tested by drochner@
2007-08-18 05:48:46 +00:00
kardel d370a3332c sync with release 2007-07-06 21:20:25 +00:00
kardel d7d9fc60cc sync with release / removes debug NULL deref 2007-07-06 21:19:33 +00:00
kardel db56afd343 compile fix for amd64 2007-06-24 19:39:06 +00:00
kardel 9238104d09 resolve merge conflicts of 4.2.4p2 import 2007-06-24 16:55:11 +00:00
kardel d3063e9f3c Import ntp 4.2.4p2 2007-06-24 15:47:02 +00:00
dogcow f790a123d5 unbork openssl import borkage. 2007-03-07 03:18:53 +00:00
kardel 24e8b498bd track NTP bug 768: opening of bcast if, misleading error message 2007-01-27 09:02:38 +00:00
kardel 8acf6049c0 Use the portable version to declare the type of the length argument
for the recv*() functions. Fix queued with the NTP project.
2007-01-21 07:59:31 +00:00
kardel 54a07e0f01 PR/25482
reinstate NTP html pages (sans gif's/img tags).
The important man pages are now generated by autogen and
thus match again the code again.
2007-01-20 16:50:29 +00:00
kardel 9e57eb45fe track ntp bug #760 - support DYNAMIC flags in async resolver 2007-01-13 11:41:05 +00:00
kardel dbbbd5d806 import NTP 4.2.4 2007-01-06 19:45:21 +00:00
kardel d1d4526d02 Import ntp 4.2.4 2007-01-06 16:04:26 +00:00
christos c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
christos 83293ad752 back to casting to long since we think that the openssl version dropping the
'L' suffix was an accident.
2006-11-14 21:54:24 +00:00
christos 65811b35f5 openssl changed its version number from long to int; compensate. 2006-11-14 19:23:47 +00:00
dogcow 499ac5cbee Looks like OpenSSL now uses an int instead of a long for its version
number (!?), so explicitly cast to long in case they change it back.
2006-11-14 02:41:40 +00:00
kardel 9a3db19511 track NTP bug 734: setsockopt(..., IP_MULTICAST_IF, ...) fails on 64 bit platforms 2006-11-06 12:19:30 +00:00
kardel a1291ab337 cope with struct timeval tv_sec being defined as long instead
of the SUS mandated time_t.
2006-07-29 19:22:25 +00:00
kardel 55fde488db using the correct type makes it compile on alpha too - found by Kurt Schreiner 2006-07-29 14:56:57 +00:00
kardel af2ffb8cb1 backout change from import.
was introduced within ntp and causing
grief there too (partly reason for p3).
this change is not necessary for NetBSD.
2006-07-29 10:21:37 +00:00
kardel f2de40854d merge 4.2.2p2
signedness fixes
	fd re-allocation for stdio
	PPSAPI fixes in refclock_parse.c
while there clean up last signedness problems for gcc4 compilation
2006-07-29 08:15:29 +00:00