summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.18.2/busybox-1.18.2-udhcp.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-02-06 21:48:53 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-02-06 21:48:53 +0100
commit9f31e2ffa005095206824e08f69da75503e998ab (patch)
tree312c72a32090bdb6c6c1adb6d48ccdc30eb495fa /package/busybox/busybox-1.18.2/busybox-1.18.2-udhcp.patch
parent4fb67dbb958f3c3bea2b5bfe34d2ffbaa6ea6e40 (diff)
busybox: 1.18.2 fixes for ping, tar and udhcp
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.18.2/busybox-1.18.2-udhcp.patch')
-rw-r--r--package/busybox/busybox-1.18.2/busybox-1.18.2-udhcp.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.18.2/busybox-1.18.2-udhcp.patch b/package/busybox/busybox-1.18.2/busybox-1.18.2-udhcp.patch
new file mode 100644
index 000000000..bed4f4dec
--- /dev/null
+++ b/package/busybox/busybox-1.18.2/busybox-1.18.2-udhcp.patch
@@ -0,0 +1,11 @@
+--- busybox-1.18.2/networking/udhcp/common.c
++++ busybox-1.18.2-udhcp/networking/udhcp/common.c
+@@ -375,7 +375,7 @@ static NOINLINE void attach_option(
+ new->data = xmalloc(length + OPT_DATA);
+ new->data[OPT_CODE] = optflag->code;
+ new->data[OPT_LEN] = length;
+- memcpy(new->data + OPT_DATA, buffer, length);
++ memcpy(new->data + OPT_DATA, (allocated ? allocated : buffer), length);
+
+ curr = opt_list;
+ while (*curr && (*curr)->data[OPT_CODE] < optflag->code)