Commit Graph

18 Commits

Author SHA1 Message Date
martin 114dbddbad Make ntpd use the getifaddrs interface, thus avoiding alignement
problems (see port-sparc64/15112).

This change will be submitted to the NTP maintainers as well.
2002-01-05 13:24:40 +00:00
martin 6db2d4b116 Back out previous change - turns out to be a sparc64 toolchain problem
(surprise!)
2002-01-03 11:22:07 +00:00
martin 357b95fa25 Replace a structure copy (dereferencing a pointer received from an ioctl)
by a memcpy, similar to the patch suggested by jarle@uninett.no in PR 15112.
I'm not sure if the ioctl code should be fixed to deliver this pointer
properly aligned, but this change should not cause any problem and it is
safer this way.
2002-01-02 20:47:37 +00:00
wiz b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
christos a9add05994 s/%%m/%m/ 2001-11-12 03:06:44 +00:00
manu 22376d8b65 Fixed a small bug in -u option parsing (it only worked if you supplied a
user *and* a group)
2001-11-08 20:06:22 +00:00
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
manu 53e4611607 Added code to run ntpd as a non root user and in a chroot jail. This should
be used with the new clockctl device which enable clock setting by non root
users on behalf of the /dev/clockctl write rights.
This code have not been commited yet to the main ntp tree.
2001-09-16 07:51:54 +00:00
itojun 69045197e1 previous buffer overrun fix was one-byte too restrictive. from jinmei@kame 2001-04-08 18:33:43 +00:00
itojun c6abd22023 avoid tp from going smaller address than buf. 2001-04-05 13:52:59 +00:00
simonb 7ae902c2b2 Fix a DoS attach (and possibly, but not confirmed, a root exploit) in
ntpd.

Fix from Poul-Henning Kamp and Dima Ruban from the FreeBSD tree, with
changes from Jason Thorpe to not overrun the end of the static buffer
and with syslog()ing the bad packets disabled so as not to DoS syslog.
2001-04-05 02:08:01 +00:00
cgd d594ce939b comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
is 890345ee05 Format string cleanups by Bill Sommerfeld. 2000-10-09 14:52:15 +00:00
simonb 9c747bda1e Fix the <ieeefp.h> problem a different way - nothing actually uses the
contents of that header (the only file that includes it compiles to the
same object code on multiple architectures with or without including
<ieeefp.h>), so remove all references to it.

Fix sent to NTP maintainers - they will probably implement this change
after the immenient 4.1.0 release, but don't want to change it so close
to the release date.
2000-05-03 06:08:45 +00:00
simonb c4e79165b2 Fix compile warnings in new code. Patches for these sent to the
ntp maintainer.
2000-04-22 15:49:31 +00:00
simonb 355d78599e Import ntp 4.0.99i 2000-04-22 14:51:59 +00:00
simonb 4ba759c886 Import ntp 4.0.99g 2000-03-29 12:38:44 +00:00