Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a14f367
)
lisp: fix vat crash with one_add_del_local_eid api
58/28858/2
author
Onong Tayeng
<
[email protected]
>
Thu, 10 Sep 2020 15:46:55 +0000
(21:16 +0530)
committer
Andrew Yourtchenko
<
[email protected]
>
Wed, 16 Sep 2020 10:33:48 +0000
(10:33 +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 <
[email protected]
>
Change-Id: I29e246f6cad4b350fec52d54e94dbed586d488c4
(cherry picked from commit
5f473c0efc9e0ff068273520b058b8ac498dc597
)
src/vat/api_format.c
patch
|
blob
|
history
diff --git
a/src/vat/api_format.c
b/src/vat/api_format.c
index
48a4a3f
..
e3a2fe7
100644
(file)
--- 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 */
}