diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-06-11 01:27:55 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-06-11 01:27:55 +0800 |
commit | d7cf7820c324c6e6453131654f1e304bcf1f1639 (patch) | |
tree | bd78715441d7e6cd1a8b19ac6e7c25165e4cfaa9 /net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c | |
parent | 6b72643279616012e60533791daa7b8f71b8fd87 (diff) | |
download | marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.tar marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.tar.gz marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.tar.bz2 marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.tar.lz marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.tar.xz marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.tar.zst marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.zip |
Close a potential file descriptor leak in the wireless code.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2385 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c')
-rw-r--r-- | net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c b/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c index f738c7c40..b195b153b 100644 --- a/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c +++ b/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c @@ -1,5 +1,5 @@ --- src/netstatus-sysdeps.c.orig Tue Mar 30 04:25:42 2004 -+++ src/netstatus-sysdeps.c Wed Jun 9 15:17:03 2004 ++++ src/netstatus-sysdeps.c Thu Jun 10 13:29:42 2004 @@ -35,6 +35,16 @@ #include <glib.h> #include <libgnome/gnome-i18n.h> @@ -17,7 +17,7 @@ static inline gboolean parse_stats (char *buf, int prx_idx, -@@ -385,6 +395,130 @@ +@@ -385,6 +395,131 @@ } } @@ -44,6 +44,7 @@ + + if (ioctl (s, req_type, &ifr) == -1) { + *error = g_strdup_printf (_("Could not send ioctl to interface, '%s'"), iface); ++ close (s); + return FALSE; + } + @@ -148,7 +149,7 @@ char * netstatus_sysdeps_read_iface_statistics (const char *iface, long *in_packets, -@@ -486,23 +620,6 @@ +@@ -486,23 +621,6 @@ g_strfreev (argv); return error_message; |