summaryrefslogtreecommitdiffstats
path: root/src/plugins/nsh/nsh_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/nsh/nsh_api.c')
-rw-r--r--src/plugins/nsh/nsh_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nsh/nsh_api.c b/src/plugins/nsh/nsh_api.c
index 02675f9a735..2f40f31e62d 100644
--- a/src/plugins/nsh/nsh_api.c
+++ b/src/plugins/nsh/nsh_api.c
@@ -713,7 +713,7 @@ nsh_api_init (vlib_main_t * vm, nsh_main_t * nm)
error = nsh_plugin_api_hookup (vm);
/* Add our API messages to the global name_crc hash table */
- setup_message_id_table (nm, &api_main);
+ setup_message_id_table (nm, vlibapi_get_main ());
vec_free (name);