Initialize n_flows member in table-hash.
authorBen Pfaff <blp@nicira.com>
Wed, 30 Apr 2008 22:33:21 +0000 (15:33 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 2 May 2008 00:02:31 +0000 (17:02 -0700)
Found by valgrind.

switch/table-hash.c

index 46ab27ee9c60a75b35cf9501d962e1e83f90d1ab..47bbe4a9368f60796e2d69b3095b1d334c67b260 100644 (file)
@@ -237,6 +237,7 @@ struct sw_table *table_hash_create(unsigned int polynomial,
         free(th);
         return NULL;
     }
+    th->n_flows = 0;
     th->bucket_mask = n_buckets - 1;
 
     swt = &th->swt;