session: fix session_table_get_or_alloc 05/28405/1
authorAndreas Schultz <andreas.schultz@travelping.com>
Thu, 23 Apr 2020 08:41:50 +0000 (10:41 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 13 Aug 2020 17:20:47 +0000 (17:20 +0000)
commitb7bbd6a1fe8e862df2510ba26216678509f9d582
treea946c35d6c42333d1796dbf6b67c8db6dfc50c7b
parentb72e494f39c5338c71b77ac9b3496d810d6bfbbd
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>
(cherry picked from commit 30a28c187b0eb9216d5d7918712d98a4b7a5ba6a)
src/vnet/session/session_lookup.c