mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 18:10:23 +00:00
spf6d: fix use after free (2) (Coverity 1221459)
Previous fix was incomplete, as calling ospf6_lsa_unlock() frees 'req' but it does not put it to zero, so it was called ospf6_lsdb_remove() afterwards even being 'req' already freed. Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
ce872c6adb
commit
7edb6aa583
@ -347,6 +347,7 @@ void ospf6_flood_interface(struct ospf6_neighbor *from, struct ospf6_lsa *lsa,
|
||||
"Received is newer, remove requesting");
|
||||
if (req == on->last_ls_req) {
|
||||
ospf6_lsa_unlock(req);
|
||||
req = NULL;
|
||||
on->last_ls_req = NULL;
|
||||
}
|
||||
if (req)
|
||||
|
Loading…
Reference in New Issue
Block a user