bug#349
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Sun Aug 28 16:17:32 UTC 2005
Could someone please apply this simple patch:
--- dhcpd.c 2005-02-14 14:32:26.000000000 +0100
+++ dhcpd.c.new 2005-08-28 17:35:36.207672001 +0200
@@ -88,7 +88,7 @@ int main(int argc, char *argv[])
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",
which should probably sort out http://bugs.busybox.net/view.php?id=349.
Cheers,
Cristian
More information about the busybox
mailing list