Commit Graph

42 Commits

Author SHA1 Message Date
mbalmer
24e4901256 There is no doubt whether whether should have a 'h' after the 'w'. 2011-10-17 16:35:21 +00:00
christos
e2f91adb83 gcc-4.5 fixes 2011-08-16 16:36:38 +00:00
christos
4dff6c909f Fix CVS-2011-2748, malformed packets can cause server to crash causing a DoS. 2011-08-15 21:12:43 +00:00
tonnerre
7c437b76bb Fix behavior of dhcpd in the case where clientid and hardware ethernet
definitions are mixed. Fixes a refcount assertion.
2009-07-16 22:44:27 +00:00
alc
b68a85a32f CID-4282: dies if we can't allocate memory for `peer->hba'
CID-2488: `t' is uninitialized
2006-12-26 00:08:44 +00:00
christos
40a354528b Coverity CID 3692: Prevent use after free (from Arnaud Lacombe) 2006-10-03 19:06:05 +00:00
seb
4a00cfc811 Typo. 2006-08-28 21:21:52 +00:00
chap
baa41845e1 Remove statement (incorrect as of ISC release 3.0.3) that the next-server
value defaults to the server address. (This statement has been removed in
ISC release 3.0.4.)

Closes PR bin/33565.
2006-05-26 19:22:03 +00:00
christos
995a3df3f0 PR/33174: Wolfgang Stukenbrock: dhcpd fails to deliver hostnames for dynamic
ranges because it is using the wrong universe in the host lookup.
2006-03-31 17:28:50 +00:00
drochner
9fbefaf7c9 merge dhcp-3.0.3 2005-08-11 17:13:21 +00:00
jmc
7a0ba84f10 gcc 2.96 requires all declarations before variable usage so the last set of
changes to fix -Wunitialized broke on vax. Moved definitions of
option and op before the initializations.
2005-06-16 22:04:24 +00:00
he
ab70040846 Add initialization of local variable to appease -Wuninitialized.
Marked with XXXGCC for arm and sparc64 compilers (found while
building for those).

Reviewed by lukem.
2005-06-10 23:48:24 +00:00
chs
7bbdd188e1 appease gcc -Wuninitialized on hp700. 2005-06-05 19:08:28 +00:00
lukem
7f4d732106 appease gcc -Wuninitialized 2005-06-02 11:10:00 +00:00
lukem
f1ce52a40f Don't attempt to close a random file descriptor.
Detected with gcc -Wuninitialized.
2005-06-02 05:45:59 +00:00
dsl
cfe7f80ff0 Add (unsigned char) cast to ctype functions 2004-10-29 20:51:11 +00:00
mellon
ed5b9801d3 Don't log overly-long (>32 byte) client hostnames. 2004-06-11 19:54:02 +00:00
drochner
8aee2aa821 Get rid of an extremely annoying message logged with "error"
priority:
"<src address>: network <whatever>: no free leases"
on each "foreign" request if I'm just not serving for
unknown clients.
Replace it which a less misleading message at "info" priority.
2003-04-11 17:11:11 +00:00
perry
fbf638659e Spelling errors, some from Igor Sobrado, PR misc/19909
This needs to be fed back to Ted Lemon
2003-03-31 17:27:57 +00:00
wiz
76c4d78af3 eliminating, not elimininating. From Igor Sobrado in PR 20723. 2003-03-15 22:38:46 +00:00
drochner
b6ae80da0f merge dhcp-3.0.1rc11 2003-02-18 17:08:38 +00:00
drochner
49c6e76122 import of ISC dhcp-3.0.1rc11 2003-02-18 16:37:52 +00:00
perry
8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
wiz
bcae355603 Fix typo. Found by Adrian Mrva. 2002-10-29 16:16:14 +00:00
wiz
756bcd1182 Fix typo. Found by Adrian Mrva. 2002-10-29 16:08:59 +00:00
drochner
ee19f13ab5 add a "ddns-updata-style" line; dhcpd won't start without one
(PR bin/12702 by Patrick Welche)
2002-06-19 15:49:02 +00:00
wiz
67e1c672d0 'comparison', not 'comparision' (hi Matthias!) 2002-06-11 15:22:57 +00:00
drochner
15dd275fb1 some more:
add a comment at some code which looks like nonsense but is a -fshort-enums
fix (by bjh21)
2002-06-11 15:16:28 +00:00
drochner
e13d261ece Coordinated Universal Time, damnit! 2002-06-11 14:24:54 +00:00
drochner
70e620efb1 remove a wrong fix: UTC is really "Coordinated Universal Time" 2002-06-11 14:22:18 +00:00
drochner
01ce8ad711 printf format fix 2002-06-11 14:17:27 +00:00
drochner
7020df4066 make it compile with -Wall again 2002-06-11 14:12:58 +00:00
drochner
c12aee07f2 merge dhcp-3.0.1rc9 2002-06-11 13:59:59 +00:00
drochner
0fbf47fd83 import of ISC dhcp-3.0.1rc9 2002-06-11 12:24:31 +00:00
itojun
5b43820fcf WARNS=1 clean. patch submitted to dhcp-bugs@isc.org. 2002-06-10 00:30:33 +00:00
bjh21
913037a61e When checking that a potentially-unsigned enum is >= 0, assign it to an int
first.  This is necessary to avoid warnings with -fshort-enums.  Casting
to an int really should be enough, but turns out not to be.

This change will be documented in doc/HACKS.
2002-03-18 20:26:50 +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
drochner
6c1ac34eb0 remove .cvsignore files which got imported inadvertently, as pointet
out by Ben Harris
2001-08-07 08:31:16 +00:00
wiz
2b4b375b7e Remove unneeded files. okay'd by drochner. 2001-08-03 15:35:09 +00:00
wiz
a27c467882 Typo fix. 2001-08-03 13:50:07 +00:00
drochner
fce24bb552 pull in manpage adaptions / corrections from usr.sbin/dhcp 2001-08-03 13:34:08 +00:00
drochner
bd5592e542 import of ISC dhcp-3.0rc10 2001-08-03 11:35:28 +00:00