From: Damjan Marion Date: Wed, 26 Oct 2016 21:50:47 +0000 (+0200) Subject: features: fix crash due to missing null termination X-Git-Tag: v17.01-rc0~41 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F3601%2F2;p=vpp.git features: fix crash due to missing null termination Change-Id: I98b407f9b698307c5a0007b198a734674b33f925 Signed-off-by: Damjan Marion --- diff --git a/vnet/vnet/adj/adj_midchain.c b/vnet/vnet/adj/adj_midchain.c index c420155320d..6afff27ec49 100644 --- a/vnet/vnet/adj/adj_midchain.c +++ b/vnet/vnet/adj/adj_midchain.c @@ -262,42 +262,42 @@ VLIB_REGISTER_NODE (adj_midchain_tx_no_count_node, static) = { VNET_IP4_TX_FEATURE_INIT (adj_midchain_tx_ip4, static) = { .node_name = "adj-midchain-tx", - .runs_before = ORDER_CONSTRAINTS {"interface-output"}, + .runs_before = ORDER_CONSTRAINTS {"interface-output", 0}, .feature_index = &adj_midchain_tx_feature_node[VNET_LINK_IP4], }; VNET_IP4_TX_FEATURE_INIT (adj_midchain_tx_no_count_ip4, static) = { .node_name = "adj-midchain-tx-no-count", - .runs_before = ORDER_CONSTRAINTS {"interface-output"}, + .runs_before = ORDER_CONSTRAINTS {"interface-output", 0}, .feature_index = &adj_midchain_tx_no_count_feature_node[VNET_LINK_IP4], }; VNET_IP6_TX_FEATURE_INIT (adj_midchain_tx_ip6, static) = { .node_name = "adj-midchain-tx", - .runs_before = ORDER_CONSTRAINTS {"interface-output"}, + .runs_before = ORDER_CONSTRAINTS {"interface-output", 0}, .feature_index = &adj_midchain_tx_feature_node[VNET_LINK_IP6], }; VNET_IP6_TX_FEATURE_INIT (adj_midchain_tx_no_count_ip6, static) = { .node_name = "adj-midchain-tx-no-count", - .runs_before = ORDER_CONSTRAINTS {"interface-output"}, + .runs_before = ORDER_CONSTRAINTS {"interface-output", 0}, .feature_index = &adj_midchain_tx_no_count_feature_node[VNET_LINK_IP6], }; VNET_MPLS_TX_FEATURE_INIT (adj_midchain_tx_mpls, static) = { .node_name = "adj-midchain-txs", - .runs_before = ORDER_CONSTRAINTS {"interface-output"}, + .runs_before = ORDER_CONSTRAINTS {"interface-output", 0}, .feature_index = &adj_midchain_tx_feature_node[VNET_LINK_MPLS], }; VNET_MPLS_TX_FEATURE_INIT (adj_midchain_tx_no_count_mpls, static) = { .node_name = "adj-midchain-tx-no-count", - .runs_before = ORDER_CONSTRAINTS {"interface-output"}, + .runs_before = ORDER_CONSTRAINTS {"interface-output", 0}, .feature_index = &adj_midchain_tx_no_count_feature_node[VNET_LINK_MPLS], }; VNET_ETHERNET_TX_FEATURE_INIT (adj_midchain_tx_ethernet, static) = { .node_name = "adj-midchain-tx", - .runs_before = ORDER_CONSTRAINTS {"error-drop"}, + .runs_before = ORDER_CONSTRAINTS {"error-drop", 0}, .feature_index = &adj_midchain_tx_feature_node[VNET_LINK_ETHERNET], }; VNET_ETHERNET_TX_FEATURE_INIT (adj_midchain_tx_no_count_ethernet, static) = { .node_name = "adj-midchain-tx-no-count", - .runs_before = ORDER_CONSTRAINTS {"error-drop"}, + .runs_before = ORDER_CONSTRAINTS {"error-drop", 0}, .feature_index = &adj_midchain_tx_no_count_feature_node[VNET_LINK_ETHERNET], };