lisp: fix vat crash with one_add_del_local_eid api 45/28745/2
authorOnong Tayeng <otayeng@cisco.com>
Thu, 10 Sep 2020 15:46:55 +0000 (21:16 +0530)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 10 Sep 2020 16:59:15 +0000 (16:59 +0000)
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

src/vat/api_format.c

index f1935de..cfe9366 100644 (file)
@@ -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 */
     }