diff options
-rw-r--r-- | src/plugins/mactime/mactime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/mactime/mactime.c b/src/plugins/mactime/mactime.c index 06dda537a2f..c5c6b8b9f2c 100644 --- a/src/plugins/mactime/mactime.c +++ b/src/plugins/mactime/mactime.c @@ -177,9 +177,11 @@ static void vl_api_mactime_enable_disable_t_handler mactime_main_t *mm = &mactime_main; int rv; + VALIDATE_SW_IF_INDEX (mp); + rv = mactime_enable_disable (mm, ntohl (mp->sw_if_index), (int) (mp->enable_disable)); - + BAD_SW_IF_INDEX_LABEL; REPLY_MACRO (VL_API_MACTIME_ENABLE_DISABLE_REPLY); } |