Hi Tomasz,

On 03/07/2013 01:13 PM, Tomasz Bursztyka wrote:
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.

That is not completely true, but yes, I'll split it up.

cheers,
daniel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to