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:
eec5a51
)
Zero the interface template before using it.
92/192/1
author
Todd Foggoa
<tfoggoa@cisco.com>
Tue, 2 Feb 2016 17:14:00 +0000
(12:14 -0500)
committer
Todd Foggoa
<tfoggoa@cisco.com>
Tue, 2 Feb 2016 17:37:21 +0000
(12:37 -0500)
Change-Id: Ib6ce325202657684adaa17c82f64c70298dae339
Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
vpp/api/api.c
patch
|
blob
|
history
diff --git
a/vpp/api/api.c
b/vpp/api/api.c
index
55de994
..
0761a94
100644
(file)
--- a/
vpp/api/api.c
+++ b/
vpp/api/api.c
@@
-1795,6
+1795,7
@@
vl_api_create_vlan_subif_t_handler (vl_api_create_vlan_subif_t * mp)
kp = clib_mem_alloc (sizeof (*kp));
*kp = sup_and_sub_key;
+ memset (&template, 0, sizeof (template));
template.type = VNET_SW_INTERFACE_TYPE_SUB;
template.sup_sw_if_index = hi->sw_if_index;
template.sub.id = id;