summaryrefslogtreecommitdiffstats
path: root/src/vnet/ethernet/p2p_ethernet_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ethernet/p2p_ethernet_api.c')
-rw-r--r--src/vnet/ethernet/p2p_ethernet_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ethernet/p2p_ethernet_api.c b/src/vnet/ethernet/p2p_ethernet_api.c
index 2c75a51d2f8..8321f8db5d3 100644
--- a/src/vnet/ethernet/p2p_ethernet_api.c
+++ b/src/vnet/ethernet/p2p_ethernet_api.c
@@ -52,7 +52,7 @@ vl_api_p2p_ethernet_add_t_handler (vl_api_p2p_ethernet_add_t * mp)
u32 parent_if_index = htonl (mp->parent_if_index);
u32 sub_id = htonl (mp->subif_id);
- u32 p2pe_if_index;
+ u32 p2pe_if_index = ~0;
u8 remote_mac[6];
if (!vnet_sw_if_index_is_api_valid (parent_if_index))