svn commit: trunk/busybox/networking/udhcp
landley at busybox.net
landley at busybox.net
Thu Sep 1 02:43:39 UTC 2005
Author: landley
Date: 2005-08-31 19:43:39 -0700 (Wed, 31 Aug 2005)
New Revision: 11305
Log:
Off by one error in max_leases sanity check. Bug 349, apparently.
Modified:
trunk/busybox/networking/udhcp/dhcpd.c
Changeset:
Modified: trunk/busybox/networking/udhcp/dhcpd.c
===================================================================
--- trunk/busybox/networking/udhcp/dhcpd.c 2005-09-01 02:40:21 UTC (rev 11304)
+++ trunk/busybox/networking/udhcp/dhcpd.c 2005-09-01 02:43:39 UTC (rev 11305)
@@ -88,7 +88,7 @@
else server_config.lease = LEASE_TIME;
/* Sanity check */
- num_ips = ntohl(server_config.end) - ntohl(server_config.start);
+ num_ips = ntohl(server_config.end) - ntohl(server_config.start) + 1;
if (server_config.max_leases > num_ips) {
LOG(LOG_ERR, "max_leases value (%lu) not sane, "
"setting to %lu instead",
More information about the busybox-cvs
mailing list