summaryrefslogtreecommitdiff
path: root/package/busybox/patches/000-upstream-dhcpd.patch
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-05-19 21:39:10 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-05-19 21:39:10 +0000
commitf5275883b9d1df3c13b99c94f71b1b4a3192045f (patch)
treeab1f861d25e66df8e432c3685542097020b24786 /package/busybox/patches/000-upstream-dhcpd.patch
parentcf06be139539bebb2ebbfd955ba582186f88746a (diff)
package/busybox: add upstream udhcp hostname truncation fix, bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21510 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/000-upstream-dhcpd.patch')
-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);