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
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 86e75c8..8ca6e2c 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -1753,6 +1753,7 @@
/* 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;
}