spf6d: fix use after free (Coverity 1221459)

Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
paco 2018-06-08 19:46:48 +02:00
parent 9eafc8abd7
commit ce872c6adb
No known key found for this signature in database
GPG Key ID: FD112A8C7E6A5E4A

View File

@ -349,8 +349,9 @@ void ospf6_flood_interface(struct ospf6_neighbor *from, struct ospf6_lsa *lsa,
ospf6_lsa_unlock(req);
on->last_ls_req = NULL;
}
ospf6_lsdb_remove(req,
on->request_list);
if (req)
ospf6_lsdb_remove(req,
on->request_list);
ospf6_check_nbr_loading(on);
/* fall through */
}