]> 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 03:27:51 +0000 (13:27 +1000)
commit27eb8ed20f06f34e5ced8ea0547767fdfb2db538
treeea79fdd1a4edd3f2e6bc9fee3829ebc722898a42
parent9a1d565f07f6527a04f0dc3e15d70b8c235cb6ed
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.

(cherry picked from commit ac2e0bc3ff375807638cfd508f417a80290a37e8)
lib/isc/radix.c