[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    bug#349
From:       Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn () axis ! com>
Date:       2005-08-28 16:17:32
Message-ID: 0508281812240.2402 () somehost
[Download RAW message or body]

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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic