summaryrefslogtreecommitdiffstats
path: root/net/gnomenettool/files/patch-src_nettool.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/gnomenettool/files/patch-src_nettool.c')
-rw-r--r--net/gnomenettool/files/patch-src_nettool.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/net/gnomenettool/files/patch-src_nettool.c b/net/gnomenettool/files/patch-src_nettool.c
new file mode 100644
index 000000000..cae4f648f
--- /dev/null
+++ b/net/gnomenettool/files/patch-src_nettool.c
@@ -0,0 +1,37 @@
+--- src/nettool.c.orig Fri Jan 7 23:13:56 2005
++++ src/nettool.c Mon Jan 24 21:03:48 2005
+@@ -22,6 +22,7 @@
+ #include <glib/gi18n.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <netinet/in.h>
+ #include <signal.h>
+ #include <errno.h>
+ #include <sys/wait.h>
+@@ -357,6 +358,10 @@
+ len, NULL);
+ }
+
++ g_free (text);
++
++ return TRUE;
++
+ } else if (status == G_IO_STATUS_AGAIN) {
+ char buf[1];
+
+@@ -368,12 +373,13 @@
+ }
+ g_string_append_c (netinfo->command_output, buf[0]);
+ }
++
++ g_free (text);
++ return TRUE;
+ } else if (status == G_IO_STATUS_EOF) {
+ }
+
+ g_free (text);
+-
+- return TRUE;
+ }
+
+ /* The condition is not G_IO_HUP | G_IO_ERR | G_IO_NVAL, so