From 21cbdc75f21cde6ea83382e647c9da081d7d5f5b Mon Sep 17 00:00:00 2001 From: Onong Tayeng Date: Thu, 10 Sep 2020 21:16:55 +0530 Subject: 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 Change-Id: I29e246f6cad4b350fec52d54e94dbed586d488c4 (cherry picked from commit 5f473c0efc9e0ff068273520b058b8ac498dc597) --- src/vat/api_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vat') diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 48a4a3fbe5d..e3a2fe734be 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 */ } -- cgit 1.2.3-korg