summaryrefslogtreecommitdiffstats
path: root/src/vnet/teib
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/teib')
-rw-r--r--src/vnet/teib/teib_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/teib/teib_api.c b/src/vnet/teib/teib_api.c
index a51dd6d0f7f..48bfee34fda 100644
--- a/src/vnet/teib/teib_api.c
+++ b/src/vnet/teib/teib_api.c
@@ -72,8 +72,7 @@ vl_api_teib_send_one (index_t nei, void *arg)
const teib_entry_t *ne;
const fib_prefix_t *pfx;
- mp = vl_msg_api_alloc (sizeof (*mp));
- clib_memset (mp, 0, sizeof (*mp));
+ mp = vl_msg_api_alloc_zero (sizeof (*mp));
mp->_vl_msg_id = ntohs (VL_API_TEIB_DETAILS + REPLY_MSG_ID_BASE);
mp->context = ctx->context;