mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-07 01:42:38 +00:00
Merge pull request #2814 from qlyoung/fix-ospf6d-lsa-uaf-test
ospf6d: fix use after free on LSA
This commit is contained in:
commit
a55a8b4538
@ -330,6 +330,8 @@ void ospf6_flood_interface(struct ospf6_neighbor *from, struct ospf6_lsa *lsa,
|
||||
zlog_debug(
|
||||
"Requesting the same, remove it, next neighbor");
|
||||
if (req == on->last_ls_req) {
|
||||
/* sanity check refcount */
|
||||
assert(req->lock >= 2);
|
||||
ospf6_lsa_unlock(req);
|
||||
on->last_ls_req = NULL;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user