mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Remove ISC_MEM_ZERO and isc_mem_*x() API
Use the new isc_mem_c*() calloc-like API for allocations that are zeroed. In turn, this also fixes couple of incorrect usage of the ISC_MEM_ZERO for structures that need to be zeroed explicitly. There are few places where isc_mem_cput() is used on structures with a flexible member (or similar).
This commit is contained in:
@@ -2223,8 +2223,8 @@ set_tlsctx_workers(isc_nmsocket_t *listener, isc_tlsctx_t *tlsctx) {
|
||||
for (size_t i = 0; i < nworkers; i++) {
|
||||
isc__networker_t *worker =
|
||||
&listener->worker->netmgr->workers[i];
|
||||
settlsctx_data_t *data = isc_mem_getx(
|
||||
worker->loop->mctx, sizeof(*data), ISC_MEM_ZERO);
|
||||
settlsctx_data_t *data = isc_mem_cget(worker->loop->mctx, 1,
|
||||
sizeof(*data));
|
||||
|
||||
isc__nmsocket_attach(listener, &data->listener);
|
||||
isc_tlsctx_attach(tlsctx, &data->tlsctx);
|
||||
|
Reference in New Issue
Block a user