Zero the interface template before using it.

Change-Id: Ib6ce325202657684adaa17c82f64c70298dae339
Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
This commit is contained in:
Todd Foggoa
2016-02-02 12:14:00 -05:00
parent eec5a51c12
commit a28f44b34e
+1
View File
@@ -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;