diff options
Diffstat (limited to 'src/vnet/fib/fib_sas.c')
-rw-r--r-- | src/vnet/fib/fib_sas.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vnet/fib/fib_sas.c b/src/vnet/fib/fib_sas.c index b607a0b5be8..230fcd17bf6 100644 --- 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)) { - 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); } |