aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-20 00:31:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-20 00:31:03 +0000
commitae93f606b77c1ca37f0bba3b5b8b849a60f305af (patch)
treec81f7feb3fb6c90ab7059e34e5055e83e132a300 /package/busybox
parent4261ab5ce2c3cc557cd47cc64cbec041e536f87d (diff)
downloadupstream-ae93f606b77c1ca37f0bba3b5b8b849a60f305af.tar.gz
upstream-ae93f606b77c1ca37f0bba3b5b8b849a60f305af.tar.bz2
upstream-ae93f606b77c1ca37f0bba3b5b8b849a60f305af.zip
fix a socket leak in udhcpc (patch by Eric L. Chen)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8069 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/patches/244-socket_leak.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/patches/244-socket_leak.patch b/package/busybox/patches/244-socket_leak.patch
new file mode 100644
index 0000000000..d5588f5b28
--- /dev/null
+++ b/package/busybox/patches/244-socket_leak.patch
@@ -0,0 +1,12 @@
+Index: busybox-1.4.2/networking/udhcp/socket.c
+===================================================================
+--- busybox-1.4.2.orig/networking/udhcp/socket.c 2007-07-20 02:27:30.440097649 +0200
++++ busybox-1.4.2/networking/udhcp/socket.c 2007-07-20 02:27:54.849488669 +0200
+@@ -83,6 +83,7 @@
+ DEBUG("adapter hardware address %02x:%02x:%02x:%02x:%02x:%02x",
+ arp[0], arp[1], arp[2], arp[3], arp[4], arp[5]);
+ }
++ close(fd);
+
+ return 0;
+ }