]> git.ipfire.org Git - thirdparty/bind9.git/commit
Move isc_mem_put to after node is checked for equality
authorMark Andrews <marka@isc.org>
Fri, 26 May 2023 00:28:39 +0000 (10:28 +1000)
committerMark Andrews <marka@isc.org>
Mon, 29 May 2023 01:40:57 +0000 (01:40 +0000)
commitac2e0bc3ff375807638cfd508f417a80290a37e8
treee58935a9a9221883befd40a267a7e95b3dc83de2
parent5c30012a835918c650f90ea9aabb496e4d3432e5
Move isc_mem_put to after node is checked for equality

isc_mem_put NULL's the pointer to the memory being freed.  The
equality test 'parent->r == node' was accidentally being turned
into a test against NULL.
lib/isc/radix.c