summaryrefslogtreecommitdiffstats
path: root/src/vat
diff options
context:
space:
mode:
authorOnong Tayeng <otayeng@cisco.com>2020-09-10 21:16:55 +0530
committerFlorin Coras <florin.coras@gmail.com>2020-09-10 16:59:15 +0000
commit5f473c0efc9e0ff068273520b058b8ac498dc597 (patch)
tree9e8592326c7a19f4fed159dc9ff74a975b625f3d /src/vat
parentcf527882e2fe49eda108cd63af175431222beebe (diff)
lisp: fix vat crash with one_add_del_local_eid api
VAT crashes when the one_add_del_local_eid api is invoked with mac address as eid. Type: fix Signed-off-by: Onong Tayeng <otayeng@cisco.com> Change-Id: I29e246f6cad4b350fec52d54e94dbed586d488c4
Diffstat (limited to 'src/vat')
-rw-r--r--src/vat/api_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index f1935dee33a..cfe936643fb 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -14305,7 +14305,7 @@ unformat_lisp_eid_vat (unformat_input_t * input, va_list * args)
{
a->type = 0; /* ip prefix type */
}
- else if (unformat (input, "%U", unformat_ethernet_address, a->addr.mac))
+ else if (unformat (input, "%U", unformat_ethernet_address, &a->addr.mac))
{
a->type = 1; /* mac type */
}