summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session/session_table.c b/src/vnet/session/session_table.c
index 5d160a4b2dc..47d19092e2b 100644
--- a/src/vnet/session/session_table.c
+++ b/src/vnet/session/session_table.c
@@ -45,9 +45,9 @@ session_table_index (session_table_t * slt)
session_table_t *
session_table_get (u32 table_index)
{
- if (vec_len (lookup_tables) <= table_index)
+ if (pool_is_free_index (lookup_tables, table_index))
return 0;
- return vec_elt_at_index (lookup_tables, table_index);
+ return pool_elt_at_index (lookup_tables, table_index);
}
#define foreach_hash_table_parameter \