@@ -989,9 +989,11 @@ vty_show_route_map_entry (struct vty *vty, struct route_map *map)
989
989
990
990
/* Print the name of the protocol */
991
991
if (zlog_default )
992
+ {
992
993
vty_out (vty , "%s" , zlog_proto_names [zlog_default -> protocol ]);
993
- if (zlog_default -> instance )
994
- vty_out (vty , " %d" , zlog_default -> instance );
994
+ if (zlog_default -> instance )
995
+ vty_out (vty , " %d" , zlog_default -> instance );
996
+ }
995
997
vty_out (vty , ":%s" , VTY_NEWLINE );
996
998
997
999
for (index = map -> head ; index ; index = index -> next )
@@ -2766,17 +2768,16 @@ DEFUN (rmap_call,
2766
2768
struct route_map_index * index = VTY_GET_CONTEXT (route_map_index );
2767
2769
const char * rmap = argv [idx_word ]-> arg ;
2768
2770
2769
- if (index )
2771
+ assert (index );
2772
+
2773
+ if (index -> nextrm )
2770
2774
{
2771
- if (index -> nextrm )
2772
- {
2773
- route_map_upd8_dependency (RMAP_EVENT_CALL_DELETED ,
2774
- index -> nextrm ,
2775
- index -> map -> name );
2776
- XFREE (MTYPE_ROUTE_MAP_NAME , index -> nextrm );
2777
- }
2778
- index -> nextrm = XSTRDUP (MTYPE_ROUTE_MAP_NAME , rmap );
2775
+ route_map_upd8_dependency (RMAP_EVENT_CALL_DELETED ,
2776
+ index -> nextrm ,
2777
+ index -> map -> name );
2778
+ XFREE (MTYPE_ROUTE_MAP_NAME , index -> nextrm );
2779
2779
}
2780
+ index -> nextrm = XSTRDUP (MTYPE_ROUTE_MAP_NAME , rmap );
2780
2781
2781
2782
/* Execute event hook. */
2782
2783
route_map_upd8_dependency (RMAP_EVENT_CALL_ADDED ,
0 commit comments