aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2010-05-19 21:39:10 +0000
committerNicolas Thill <nico@openwrt.org>2010-05-19 21:39:10 +0000
commitf7d97234e23cb31940cfe5690ca8a4f32cbe08b6 (patch)
treefdfca511ccfd8aabf530c05685194a0454512e20 /package/busybox/patches
parentcc84e0672baab38c2b912454e6fa3395b2561928 (diff)
downloadupstream-f7d97234e23cb31940cfe5690ca8a4f32cbe08b6.tar.gz
upstream-f7d97234e23cb31940cfe5690ca8a4f32cbe08b6.tar.bz2
upstream-f7d97234e23cb31940cfe5690ca8a4f32cbe08b6.zip
package/busybox: add upstream udhcp hostname truncation fix, bump release number
SVN-Revision: 21510
Diffstat (limited to 'package/busybox/patches')
-rw-r--r--package/busybox/patches/000-upstream-dhcpd.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/patches/000-upstream-dhcpd.patch b/package/busybox/patches/000-upstream-dhcpd.patch
new file mode 100644
index 0000000000..eef33f80de
--- /dev/null
+++ b/package/busybox/patches/000-upstream-dhcpd.patch
@@ -0,0 +1,11 @@
+--- a/networking/udhcp/leases.c
++++ b/networking/udhcp/leases.c
+@@ -64,6 +64,8 @@ struct dyn_lease* FAST_FUNC add_lease(
+ oldest->hostname[0] = '\0';
+ if (hostname) {
+ char *p;
++
++ hostname_len++; /* include NUL */
+ if (hostname_len > sizeof(oldest->hostname))
+ hostname_len = sizeof(oldest->hostname);
+ p = safe_strncpy(oldest->hostname, hostname, hostname_len);