[hipl-commit] [trunk] Rev 3677: Bug fixes to bad hash table uninitializations in hipfw.

  • From: Miika Komu <miika@xxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 18 Feb 2010 13:40:12 +0200

Committer: Miika Komu <miika@xxxxxx>
Date: Thu Feb 18 13:40:11 2010 +0200
Revision: 3677
Revision-id: miika@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Bug fixes to bad hash table uninitializations in hipfw.
  http://hipl.hiit.fi/bugzilla/show_bug.cgi?id=1245

Modified:
  M  firewall/cache.c
  M  firewall/cache_port.c
  M  firewall/proxyconndb.c

=== modified file 'firewall/cache.c'
--- firewall/cache.c    2010-02-11 17:21:17 +0000
+++ firewall/cache.c    2010-02-18 11:40:11 +0000
@@ -297,6 +297,6 @@
     }
 
     HIP_UNLOCK_HT(&firewall_cache_db);
-    hip_ht_uninit(&firewall_cache_db);
+    hip_ht_uninit(firewall_cache_db);
     HIP_DEBUG("End hldbdb delete\n");
 }

=== modified file 'firewall/cache_port.c'
--- firewall/cache_port.c       2010-02-17 13:55:23 +0000
+++ firewall/cache_port.c       2010-02-18 11:40:11 +0000
@@ -173,11 +173,13 @@
 
     list_for_each_safe(item, tmp, firewall_port_cache_db, i)
     {
+      HIP_DEBUG("xx\n");
         this = (firewall_port_cache_hl_t *) list_entry(item);
         hip_ht_delete(firewall_port_cache_db, this);
         free(this);
+      HIP_DEBUG("yy\n");
     }
     HIP_UNLOCK_HT(&firewall_port_cache_db);
-    hip_ht_uninit(&firewall_port_cache_db);
+    hip_ht_uninit(firewall_port_cache_db);
     HIP_DEBUG("End hldbdb delete\n");
 }

=== modified file 'firewall/proxyconndb.c'
--- firewall/proxyconndb.c      2010-02-11 17:21:17 +0000
+++ firewall/proxyconndb.c      2010-02-18 11:40:11 +0000
@@ -115,7 +115,7 @@
         hip_ht_delete(hip_proxy_conn_db, entry);
         free(entry);
     }
-    hip_ht_uninit(&hip_proxy_conn_db);
+    hip_ht_uninit(hip_proxy_conn_db);
 }
 
 /**

Other related posts:

  • » [hipl-commit] [trunk] Rev 3677: Bug fixes to bad hash table uninitializations in hipfw. - Miika Komu