From 1fe6ed38cd0136c514aabae01389653beab27fb9 Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Wed, 26 Jul 2006 09:37:26 +0000 Subject: [ospfd] Allow ospf_lsa_unlock to NULL out callers' LSA pointers upon free 2006-07-26 Paul Jakma * ospf_lsa.{c,h}: (ospf_lsa_unlock) Change to take a double pointer to the LSA to be 'unlocked', so that, if the LSA is freed, the callers pointer to the LSA can be NULLed out, allowing any further use of that pointer to provoke a crash sooner rather than later. * ospf_*.c: (general) Adjust callers of ospf_lsa_unlock to match previous. Try annotate 'locking' somewhat to show which 'locks' are protecting what LSA reference, if not obvious. * ospf_opaque.c: (ospf_opaque_lsa_install) Trivial: remove useless goto, replace with return. * ospf_packet.c: (ospf_make_ls_ack) Trivial: merge two list loops, the dual-loop predated the delete-safe list-loop macro. --- ospfd/ChangeLog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ospfd/ChangeLog') diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index 2c23774a..61ca5e0f 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -1,3 +1,17 @@ +2006-07-26 Paul Jakma + + * ospf_lsa.{c,h}: (ospf_lsa_unlock) Change to take a double pointer + to the LSA to be 'unlocked', so that, if the LSA is freed, the + callers pointer to the LSA can be NULLed out, allowing any further + use of that pointer to provoke a crash sooner rather than later. + * ospf_*.c: (general) Adjust callers of ospf_lsa_unlock to match + previous. Try annotate 'locking' somewhat to show which 'locks' + are protecting what LSA reference, if not obvious. + * ospf_opaque.c: (ospf_opaque_lsa_install) Trivial: remove useless + goto, replace with return. + * ospf_packet.c: (ospf_make_ls_ack) Trivial: merge two list loops, + the dual-loop predated the delete-safe list-loop macro. + 2006-07-25 Paul Jakma * ospf_neigbor.h: (struct ospf_neighbor) Add some additional -- cgit v1.2.1