session: fix application_lookup_name fail due to app_by_name default hash type wrong

Type: fix

Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com>
Change-Id: I539c431d991234c6cebc0961588f5dfbc9caa3c2
This commit is contained in:
jiangxiaoming
2020-07-13 16:21:33 +08:00
committed by Florin Coras
parent 47cb248424
commit b495e9fd6d

View File

@ -1753,6 +1753,7 @@ application_init (vlib_main_t * vm)
/* Add a certificate with index 0 to support legacy apis */
(void) app_cert_key_pair_alloc ();
app_main.last_crypto_engine = CRYPTO_ENGINE_LAST;
app_main.app_by_name = hash_create_vec (0, sizeof (u8), sizeof (uword));
return 0;
}