Skip to content

Commit 9af5425

Browse files
author
Mark Stapp
committed
zebra: improve an rnode debug
Improve a debug when we create a new rib_dest by calling the debug after setting up the dest. Signed-off-by: Mark Stapp <[email protected]>
1 parent 079ee23 commit 9af5425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zebra/zebra_rib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,10 +4033,10 @@ static void rib_link(struct route_node *rn, struct route_entry *re, int process)
40334033

40344034
dest = rib_dest_from_rnode(rn);
40354035
if (!dest) {
4036+
dest = zebra_rib_create_dest(rn);
4037+
40364038
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
40374039
rnode_debug(rn, re->vrf_id, "rn %p adding dest", rn);
4038-
4039-
dest = zebra_rib_create_dest(rn);
40404040
}
40414041

40424042
re_list_add_head(&dest->routes, re);

0 commit comments

Comments
 (0)