Merge pull request #2502 from pacovn/Coverity_1221459_Use_after_free

ospf6d: fix use after free (2) (Coverity 1221459)
This commit is contained in:
Quentin Young 2018-06-21 14:38:47 -04:00 committed by GitHub
commit c3fdecefb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,6 +347,7 @@ void ospf6_flood_interface(struct ospf6_neighbor *from, struct ospf6_lsa *lsa,
"Received is newer, remove requesting"); "Received is newer, remove requesting");
if (req == on->last_ls_req) { if (req == on->last_ls_req) {
ospf6_lsa_unlock(req); ospf6_lsa_unlock(req);
req = NULL;
on->last_ls_req = NULL; on->last_ls_req = NULL;
} }
if (req) if (req)