Author: janderwald
Date: Wed Nov 12 08:23:36 2008
New Revision: 37304
URL:
http://svn.reactos.org/svn/reactos?rev=37304&view=rev
Log:
- Fix length check
- CID 556/R2
Modified:
trunk/reactos/base/services/dhcp/dhclient.c
Modified: trunk/reactos/base/services/dhcp/dhclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/dhclien…
==============================================================================
--- trunk/reactos/base/services/dhcp/dhclient.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/dhcp/dhclient.c [iso-8859-1] Wed Nov 12 08:23:36 2008
@@ -1775,7 +1775,7 @@
case ACTION_APPEND:
len = ip->client->
config->defaults[i].len +
- lease->options[i].len;
+ lease->options[i].len + 1;
if (len > sizeof(dbuf)) {
warning("no space to %s %s",
"append option",