diff options
Diffstat (limited to 'src/vnet/policer')
-rw-r--r-- | src/vnet/policer/policer_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/policer/policer_api.c b/src/vnet/policer/policer_api.c index 96ee781ca18..ae57a9359ea 100644 --- a/src/vnet/policer/policer_api.c +++ b/src/vnet/policer/policer_api.c @@ -204,7 +204,7 @@ setup_message_id_table (api_main_t * am) static clib_error_t * policer_api_hookup (vlib_main_t * vm) { - api_main_t *am = &api_main; + api_main_t *am = vlibapi_get_main (); #define _(N,n) \ vl_msg_api_set_handlers(VL_API_##N, #n, \ |