Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ip: check if interface has link-local address
[vpp.git]
/
src
/
vnet
/
fib
/
fib_sas.c
diff --git
a/src/vnet/fib/fib_sas.c
b/src/vnet/fib/fib_sas.c
index
b607a0b
..
230fcd1
100644
(file)
--- a/
src/vnet/fib/fib_sas.c
+++ b/
src/vnet/fib/fib_sas.c
@@
-102,7
+102,12
@@
fib_sas6_get (u32 sw_if_index,
*/
if (ip6_address_is_link_local_unicast (dst))
{
*/
if (ip6_address_is_link_local_unicast (dst))
{
- ip6_address_copy (src, ip6_get_link_local_address (sw_if_index));
+ const ip6_address_t *ll = ip6_get_link_local_address (sw_if_index);
+ if (NULL == ll)
+ {
+ return (false);
+ }
+ ip6_address_copy (src, ll);
return (true);
}
return (true);
}