summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2009-02-12 16:54:30 +0000
committerstsp <stsp@openbsd.org>2009-02-12 16:54:30 +0000
commitdb8ae7dcb971f86e731121a16d09cad3b17e709a (patch)
treef7a4fd3f303ddd35f75dfed67c556b64499f5485 /lib/libc/stdlib
parentFix typo; wClockFrequency -> dwClockFrequency. (diff)
downloadwireguard-openbsd-db8ae7dcb971f86e731121a16d09cad3b17e709a.tar.xz
wireguard-openbsd-db8ae7dcb971f86e731121a16d09cad3b17e709a.zip
Make vertex_free() correctly free LSAs in per-interface LSA trees.
Save a pointer to the right LSA tree in new member v->lsa_tree. This saves us the hassle of finding the right tree in vertex_free(), we already know it at creation time so why not tuck it in there? This might cause problems if the ospfe side ever decides to call area_del() with a non-empty area->lsa_tree, without correctly initialising v->lsa_tree. But grep shows that the area's lsa_tree is currently just initialized on the ospfe side, but never modified. ospf6d daemons which crashed after about 1 min with malloc options FGJ are now happy. ok claudio@
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions