]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: fix null pointer dereference when flushing an opaque LSA
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 31 May 2021 13:27:51 +0000 (10:27 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 8 Jun 2021 14:41:33 +0000 (11:41 -0300)
commitb4a970999cd9c85ebc617b130b6043ac7e9226c3
tree4fc4e075f403536e5afaf6dc88412cfee3466a6d
parent4b3c4577024be8ebbfa8d36aada419070c2925be
ospfd: fix null pointer dereference when flushing an opaque LSA

Call ospf_lsa_flush() before free_opaque_info_per_id() since the
latter can deallocate the LSA that is going to be flushed.

Also, there's no need to set the LSA MaxAge to OSPF_LSA_MAXAGE
manually as the ospf_lsa_flush() function already takes care of that.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospfd/ospf_opaque.c