diff options
author | Todd Foggoa <tfoggoa@cisco.com> | 2016-02-02 12:14:00 -0500 |
---|---|---|
committer | Todd Foggoa <tfoggoa@cisco.com> | 2016-02-02 12:37:21 -0500 |
commit | a28f44b34e12b09106bb060eb5d8de24836a6bbb (patch) | |
tree | 67b8b997e12501d5c4b77f0325e9a1c725042bb4 | |
parent | eec5a51c122dcccaf4b9e6f9899a7f3061ca9853 (diff) |
Zero the interface template before using it.
Change-Id: Ib6ce325202657684adaa17c82f64c70298dae339
Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
-rw-r--r-- | vpp/api/api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vpp/api/api.c b/vpp/api/api.c index 55de9946c19..0761a94266d 100644 --- 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; |