[PATCH v2] vpn: Cleanup vpn connections when vpnd dies

Jukka Rissanen jukka.rissanen at linux.intel.com
Mon Nov 26 05:29:29 PST 2012


---
The hash removal was enough after all. This v2 is just rebased after
v2 of "vpn: Do not remove vpn connections hash when vpnd dies"
patch.

Jukka

 plugins/vpn.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/vpn.c b/plugins/vpn.c
index 82fbdb5..c41722c 100644
--- a/plugins/vpn.c
+++ b/plugins/vpn.c
@@ -1460,6 +1460,8 @@ static void vpnd_created(DBusConnection *conn, void *user_data)
 static void vpnd_removed(DBusConnection *conn, void *user_data)
 {
 	DBG("connection %p", conn);
+
+	g_hash_table_remove_all(vpn_connections);
 }
 
 static void remove_connection(DBusConnection *conn, const char *path)
-- 
1.7.11.4




More information about the connman mailing list