summaryrefslogtreecommitdiffstats
path: root/src/vnet/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/config.c')
-rw-r--r--src/vnet/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/config.c b/src/vnet/config.c
index 03189d77cd5..26b0cad6055 100644
--- a/src/vnet/config.c
+++ b/src/vnet/config.c
@@ -247,7 +247,7 @@ vnet_config_add_feature (vlib_main_t * vm,
u32 node_index = vec_elt (cm->node_index_by_feature_index, feature_index);
if (node_index == ~0) // feature node does not exist
- return config_string_heap_index; // return original config index
+ return ~0;
if (config_string_heap_index == ~0)
{
@@ -330,7 +330,7 @@ vnet_config_del_feature (vlib_main_t * vm,
/* Feature not found. */
if (f >= vec_end (old->features))
- return config_string_heap_index; // return original config index
+ return ~0;
new_features = duplicate_feature_vector (old->features);
f = new_features + (f - old->features);