]> git.proxmox.com Git - mirror_frr.git/commit - ospf6d/ospf6_message.c
ospf6d: Prevent use after free
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 18 Apr 2020 01:18:53 +0000 (21:18 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 18 Apr 2020 12:35:06 +0000 (08:35 -0400)
commit744ba5696921114b552a05cd848a4f7da5b449b6
treed5e176b7e7d5c6861778505b84c141e4a9702c84
parent16167b31469c1cf3c6203495e639cbf640ef45f1
ospf6d: Prevent use after free

ospf6_lsa_unlock may free the lsa data structure as such
we cannot use the passed in data structure after freeing it.

Provide a mechanism to know if the data has been freed
using the same usage patterns of other _unlock functions
in FRR.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospf6d/ospf6_flood.c
ospf6d/ospf6_lsa.c
ospf6d/ospf6_lsa.h
ospf6d/ospf6_lsdb.c
ospf6d/ospf6_message.c