diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-10-08 11:38:00 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-10-08 11:38:00 +0000 |
commit | 72888e3ad2944cd05954457adc34a05bdf7fc40b (patch) | |
tree | b1374bd4b812508c0bb8bc6cb28b486c160a9241 /patches | |
parent | 8af3ed5b4fd799093014d0208de7350f371c5466 (diff) | |
download | ptxdist-72888e3ad2944cd05954457adc34a05bdf7fc40b.tar.gz ptxdist-72888e3ad2944cd05954457adc34a05bdf7fc40b.tar.xz |
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@3206 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches')
-rw-r--r-- | patches/busybox-1.00/generic/ptxdist-0.5.2-busybox.diff | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/busybox-1.00/generic/ptxdist-0.5.2-busybox.diff b/patches/busybox-1.00/generic/ptxdist-0.5.2-busybox.diff new file mode 100644 index 000000000..56500a99a --- /dev/null +++ b/patches/busybox-1.00/generic/ptxdist-0.5.2-busybox.diff @@ -0,0 +1,29 @@ +# +# Submitted: +# +# Kai-Uwe Bloem, 2004-04-05 +# +# Error: +# +# off-by-one error +# +# Description: +# +# <pointer to discussions on the net> +# +# State: +# +# <upstream state of this problem> +# + +--- busybox-1.00-pre10/networking/udhcp/dhcpd.c Sat Jan 31 00:45:12 2004 ++++ busybox-1.00-pre10-ptx/networking/udhcp/dhcpd.c Mon Apr 5 11:36:21 2004 +@@ -84,7 +84,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", |