diff options
author | Jon Loeliger <jdl@netgate.com> | 2019-03-21 10:57:51 -0500 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-03-22 08:28:02 +0000 |
commit | bdd6e6ac4ebde344adeb3f7c78c4b2031a0eb52a (patch) | |
tree | 1a425671cbf000cb3585cfa9aebe3d031dbadcbb /src/plugins/map/map_api.c | |
parent | d1e17d00bb81659bf9e45caa62482bf7029d98f7 (diff) |
MAP: Crush Coverity Complaint
Change-Id: I965229f5bf8fcde9176357536a23ba8056542919
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/plugins/map/map_api.c')
-rw-r--r-- | src/plugins/map/map_api.c | 2 |
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 = |