Hi Daniel,

@@ -1669,7 +1677,18 @@ static struct connman_iptables *pre_load_table(const 
char *table_name,
        if (table != NULL)
                return table;
- return iptables_init(table_name);
+       table = g_hash_table_lookup(table_hash, table_name);
+       if (table != NULL)
+               return table;
+
+       table = iptables_init(table_name);
+       if (table == NULL)
+               return NULL;
+
+       table->name = g_strdup(table_name);
+       g_hash_table_replace(table_hash, table->name, table);
+

This part has nothing to do with debug improvement. Split this up.

Tomasz
_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to