]> git.proxmox.com Git - mirror_frr.git/commit
ospf6d: Prevent use after free
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 25 Sep 2019 00:40:08 +0000 (20:40 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 25 Sep 2019 13:26:24 +0000 (09:26 -0400)
commit0f9f74baeb97f437d7acf7feda0f400d50943c4c
treede20395258870f3baa322acce995f8fbab74687d
parentb53c5f1ab47d05a85b254e88f12be4ac5c71d42a
ospf6d: Prevent use after free

the for (ALL_LSDB...) macro was iterating over lsa,
when lsa had just been freed in these functions.
Remove the macro and make the adjustments saving lsa_next
before the free.

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