Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
map: api: fix tag overflow and leak
[vpp.git]
/
src
/
plugins
/
map
/
map.c
diff --git
a/src/plugins/map/map.c
b/src/plugins/map/map.c
index
bc9b3df
..
92d2337
100644
(file)
--- a/
src/plugins/map/map.c
+++ b/
src/plugins/map/map.c
@@
-551,7
+551,7
@@
map_add_domain_command_fn (vlib_main_t * vm,
num_m_args++;
else if (unformat (line_input, "mtu %d", &mtu))
num_m_args++;
num_m_args++;
else if (unformat (line_input, "mtu %d", &mtu))
num_m_args++;
- else if (unformat (line_input, "tag %
v
", &tag))
+ else if (unformat (line_input, "tag %
s
", &tag))
;
else
{
;
else
{
@@
-573,6
+573,7
@@
map_add_domain_command_fn (vlib_main_t * vm,
mtu, flags, tag);
done:
mtu, flags, tag);
done:
+ vec_free (tag);
unformat_free (line_input);
return error;
unformat_free (line_input);
return error;