X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ffib%2Ffib_sas.c;h=230fcd17bf609b7073395bc099e36a192d344990;hb=b31fbc47f5fcf8234c757558d7b0285348774086;hp=b607a0b5be8509d77e69aed2e3b7c4b18c0094d0;hpb=48a13f38fa59387fb751fa55f5036dae3dfd5631;p=vpp.git 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); }