Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
BIER
[vpp.git]
/
src
/
vnet
/
fib
/
fib_path_list.c
diff --git
a/src/vnet/fib/fib_path_list.c
b/src/vnet/fib/fib_path_list.c
index
f30fd7e
..
f947740
100644
(file)
--- a/
src/vnet/fib/fib_path_list.c
+++ b/
src/vnet/fib/fib_path_list.c
@@
-583,6
+583,11
@@
fib_path_list_get_n_paths (fib_node_index_t path_list_index)
{
fib_path_list_t *path_list;
+ if (FIB_NODE_INDEX_INVALID == path_list_index)
+ {
+ return (0);
+ }
+
path_list = fib_path_list_get(path_list_index);
return (vec_len(path_list->fpl_paths));