]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use static storage for isc_mem water_t
authorOndřej Surý <ondrej@sury.org>
Thu, 22 Jul 2021 04:14:32 +0000 (06:14 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 22 Jul 2021 09:51:46 +0000 (11:51 +0200)
commit22db2705cdc3e7fdd443f4447a68c2b50cf62eb5
tree89fc9b8a97289a9b77aadb0476c18ef955fa940b
parent240f9d203789ed8fa0663b2e1686d0797eb3bdc1
Use static storage for isc_mem water_t

On the isc_mem water change the old water_t structure could be used
after free.  Instead of introducing reference counting on the hot-path
we are going to introduce additional constraints on the
isc_mem_setwater.  Once it's set for the first time, the additional
calls have to be made with the same water and water_arg arguments.
lib/dns/adb.c
lib/dns/cache.c
lib/isc/include/isc/mem.h
lib/isc/mem.c