diff options
-rw-r--r-- | isisd/isis_redist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c index 815de513f..20f3e62a7 100644 --- a/isisd/isis_redist.c +++ b/isisd/isis_redist.c @@ -338,12 +338,14 @@ static void isis_redist_routemap_set(struct isis_redist *redist, { if (redist->map_name) { XFREE(MTYPE_ISIS, redist->map_name); + route_map_counter_decrement(redist->map); redist->map = NULL; } if (routemap && strlen(routemap)) { redist->map_name = XSTRDUP(MTYPE_ISIS, routemap); redist->map = route_map_lookup_by_name(routemap); + route_map_counter_increment(redist->map); } } |