The following small patch fixes the segfault when network status is
changing.

--- xchat-gnome-0.30.0~git20100421.29cc76.orig/plugins/net-monitor/net-monitor.c
+++ xchat-gnome-0.30.0~git20100421.29cc76/plugins/net-monitor/net-monitor.c
@@ -176,7 +176,8 @@ set_network_mode (NetworkStatus status)
                 */
                res_init();
 
-               g_hash_table_foreach (networks, (GHFunc) connect_to_network, 
NULL);
+               if(networks)
+                       g_hash_table_foreach (networks, (GHFunc) 
connect_to_network, NULL);
        }
 }

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/851058

Title:
  xchat-gnome crashed with SIGSEGV in g_hash_table_foreach()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xchat-gnome/+bug/851058/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to