From 20bed1e8665f5ffbb822d4569bc2456f3a0e27b9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 20 Jul 2007 00:31:03 +0000 Subject: [PATCH] fix a socket leak in udhcpc (patch by Eric L. Chen) SVN-Revision: 8069 --- package/busybox/patches/244-socket_leak.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/busybox/patches/244-socket_leak.patch 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; + } -- 2.30.2