summaryrefslogtreecommitdiffstats
path: root/src/plugins/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/map')
-rw-r--r--src/plugins/map/map_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/map/map_api.c b/src/plugins/map/map_api.c
index 92abecd3430..b9b4416d57a 100644
--- a/src/plugins/map/map_api.c
+++ b/src/plugins/map/map_api.c
@@ -60,8 +60,8 @@ vl_api_map_add_domain_t_handler (vl_api_map_add_domain_t * mp)
if (len > 0)
{
tag = clib_mem_alloc (len + 1);
+ clib_memset (tag, 0, len + 1);
clib_memcpy (tag, (char *) mp->tag.buf, len);
- tag[len] = 0;
}
rv =