session: fix session_table_get_or_alloc 56/26656/3
authorAndreas Schultz <andreas.schultz@travelping.com>
Thu, 23 Apr 2020 08:41:50 +0000 (10:41 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 23 Apr 2020 15:34:18 +0000 (15:34 +0000)
commit30a28c187b0eb9216d5d7918712d98a4b7a5ba6a
tree6cd8be8f1b95d72e2375df3517c9e89933f97c08
parent68e5fd5206e75cb367375b4fea2e531a3712fd06
session: fix session_table_get_or_alloc

Extending the fib_index_to_table_index could leave entries uninitialized,
pointing to the session tables at index 0. That session index exists by
default, but it is a IPv4 session table. That would break all IPv6 on
the unitilized fib indexes.

Type: fix

Change-Id: Ie3f0a87a7f829ceb39f75ec06658b0ad1d3813ae
Signed-off-by: Andreas Schultz <andreas.schultz@travelping.com>
src/vnet/session/session_lookup.c