FIB: do debug before remvoing last source
Change-Id: I4e1cde754eb4d6406cd6cd51f37d89552bdb6a53
Signed-off-by: Neale Ranns <nranns@cisco.com>
diff --git a/src/vnet/fib/fib_entry.c b/src/vnet/fib/fib_entry.c
index 32e45f2..a2e2a1e 100644
--- a/src/vnet/fib/fib_entry.c
+++ b/src/vnet/fib/fib_entry.c
@@ -1111,10 +1111,10 @@
best_source = fib_entry_src_get_source(bsrc);
bflags = fib_entry_src_get_flags(bsrc);
- sflag = fib_entry_src_action_remove_or_update_inherit(fib_entry, source);
-
FIB_ENTRY_DBG(fib_entry, "special remove:%U", format_fib_source, source);
+ sflag = fib_entry_src_action_remove_or_update_inherit(fib_entry, source);
+
/*
* if the path list for the source passed is invalid,
* then we need to create a new one. else we are updating