]> git.ipfire.org Git - thirdparty/bind9.git/commit
Silence Coverity USE_AFTER_FREE warning
authorMark Andrews <marka@isc.org>
Wed, 10 May 2023 04:50:59 +0000 (14:50 +1000)
committerMark Andrews <marka@isc.org>
Tue, 23 May 2023 02:13:28 +0000 (02:13 +0000)
commitc48c72343d1e1c75b78760ea45fa6ac237f4abbd
tree390baa0aea2d8dbaabea4c45a6af6c2e7e3a520a
parent262cf2169a8c5edc4f99b1f7d74e9e8d0b4c9cee
Silence Coverity USE_AFTER_FREE warning

Use current used pointer - 16 instead of a saved pointer as Coverity
thinks the memory may be freed between assignment and use of 'cp'.
isc_buffer_put{mem,uint{8,16,32}} can theoretically free the memory
if there is a dynamic buffer in use but that is not the case here.
lib/ns/client.c