]> git.ipfire.org Git - thirdparty/bind9.git/commit
Address potential memory leak in openssldh_parse()
authorMark Andrews <marka@isc.org>
Mon, 1 Nov 2021 00:13:43 +0000 (11:13 +1100)
committerMark Andrews <marka@isc.org>
Mon, 1 Nov 2021 21:50:47 +0000 (21:50 +0000)
commit573a5858fa55d4239fb1db1dd8f8f04d05f03d0f
tree0346185783f8791fcb941b5b3d3406f6c46b7420
parentdfd040a5aa071e5412b18e8b8764089f8ae80f85
Address potential memory leak in openssldh_parse()

'dh' was being assigned to key->keydata.dh too soon which could
result in a memory leak on error.  Moved the assignement of
key->keydata.dh until after dh was correct.

Coverity was reporting dead code on the error path cleaning up 'dh'
which triggered this review.
lib/dns/openssldh_link.c