summaryrefslogtreecommitdiff
path: root/lib/routemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/routemap.c')
-rw-r--r--lib/routemap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index cc63e3a1..2906a52e 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -429,7 +429,7 @@ route_map_lookup_match (const char *name)
unsigned int i;
struct route_map_rule_cmd *rule;
- for (i = 0; i < vector_max (route_match_vec); i++)
+ for (i = 0; i < vector_active (route_match_vec); i++)
if ((rule = vector_slot (route_match_vec, i)) != NULL)
if (strcmp (rule->str, name) == 0)
return rule;
@@ -443,7 +443,7 @@ route_map_lookup_set (const char *name)
unsigned int i;
struct route_map_rule_cmd *rule;
- for (i = 0; i < vector_max (route_set_vec); i++)
+ for (i = 0; i < vector_active (route_set_vec); i++)
if ((rule = vector_slot (route_set_vec, i)) != NULL)
if (strcmp (rule->str, name) == 0)
return rule;