2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00
This commit is contained in:
Evan Hunt
2020-02-18 13:38:41 -08:00
committed by Witold Kręcicki
parent 4b6a064972
commit 0b76d8a490
2 changed files with 8 additions and 5 deletions

View File

@@ -2330,6 +2330,10 @@ ns__client_setup(ns_client_t *client, ns_clientmgr_t *mgr, bool new) {
isc_mem_t *oldmctx = client->mctx;
ns_query_t query = client->query;
/*
* Retain these values from the existing client, but
* zero every thing else.
*/
*client = (ns_client_t){ .magic = 0,
.mctx = oldmctx,
.manager = oldmgr,