Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
FIB: encode the label stack in the FIB path during table dump
[vpp.git]
/
src
/
vnet
/
fib
/
fib_path_ext.c
diff --git
a/src/vnet/fib/fib_path_ext.c
b/src/vnet/fib/fib_path_ext.c
index
5ecf3a9
..
209b627
100644
(file)
--- a/
src/vnet/fib/fib_path_ext.c
+++ b/
src/vnet/fib/fib_path_ext.c
@@
-328,11
+328,14
@@
fib_path_ext_list_find_by_path_index (const fib_path_ext_list_t *list,
{
fib_path_ext_t *path_ext;
{
fib_path_ext_t *path_ext;
-
vec_foreach(path_ext, list->fpel_exts
)
+
if (NULL != list
)
{
{
-
if (path_ext->fpe_path_index == path_index
)
+
vec_foreach(path_ext, list->fpel_exts
)
{
{
- return (path_ext);
+ if (path_ext->fpe_path_index == path_index)
+ {
+ return (path_ext);
+ }
}
}
return (NULL);
}
}
return (NULL);