Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ospfd: Function order caused use after free.
The opaque lsa that we are storing is stored on various lists depending on it's type. This removal from the list was being done *after* the pointer was freed. This is not a good idea. Since the use after free was just removal from a linked list and the freeing function does not do anything other than free data, than just switching the function order should be sufficient. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
- Loading branch information