lisp: fix coverity 277315
Handle the case of the mapping not being found by GID. Type: fix Change-Id: Ibce3b9e8419c0dddca97b4d0d5a71f25dfd529d8 Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
This commit is contained in:

committed by
Florin Coras

parent
dd0144a456
commit
ccd83cb501
@ -4276,6 +4276,11 @@ process_map_request (vlib_main_t * vm, vlib_node_runtime_t * node,
|
|||||||
rloc_probe_recv++;
|
rloc_probe_recv++;
|
||||||
clib_memset (&m, 0, sizeof (m));
|
clib_memset (&m, 0, sizeof (m));
|
||||||
u32 mi = gid_dictionary_lookup (&lcm->mapping_index_by_gid, &dst);
|
u32 mi = gid_dictionary_lookup (&lcm->mapping_index_by_gid, &dst);
|
||||||
|
if (GID_LOOKUP_MISS == mi)
|
||||||
|
{
|
||||||
|
clib_warning ("Cannot find mapping index by gid!");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: select best locator; for now use the first one
|
// TODO: select best locator; for now use the first one
|
||||||
dst_loc = &gid_address_ip (&itr_rlocs[0]);
|
dst_loc = &gid_address_ip (&itr_rlocs[0]);
|
||||||
|
Reference in New Issue
Block a user