Commit c0e3e1fe authored by Mark Andrews's avatar Mark Andrews
Browse files

4813. [bug] Address potential read after free errors from

                        query_synthnodata, query_synthwildcard and
                        query_synthnxdomain. [RT #46547]
parent 312c84c7
4813. [bug] Address potential read after free errors from
query_synthnodata, query_synthwildcard and
query_synthnxdomain. [RT #46547]
4812. [bug] Minor improvements to stability and consistency of code
handling managed keys. [RT #46468]
 
......
......@@ -8424,7 +8424,7 @@ query_synthnodata(query_ctx_t *qctx, const dns_name_t *signer,
goto cleanup;
}
dns_name_clone(signer, name);
dns_name_copy(signer, name, NULL);
/*
* Add SOA record. Omit the RRSIG if DNSSEC was not requested.
......@@ -8489,7 +8489,7 @@ query_synthwildcard(query_ctx_t *qctx, dns_rdataset_t *rdataset,
result = ISC_R_NOMEMORY;
goto cleanup;
}
dns_name_clone(qctx->client->query.qname, name);
dns_name_copy(qctx->client->query.qname, name, NULL);
clone = query_newrdataset(qctx->client);
if (clone == NULL) {
......@@ -8650,7 +8650,7 @@ query_synthnxdomain(query_ctx_t *qctx,
goto cleanup;
}
dns_name_clone(signer, name);
dns_name_copy(signer, name, NULL);
/*
* Add SOA record. Omit the RRSIG if DNSSEC was not requested.
......@@ -8681,7 +8681,7 @@ query_synthnxdomain(query_ctx_t *qctx,
goto cleanup;
}
dns_name_clone(nowild, name);
dns_name_copy(nowild, name, NULL);
clone = query_newrdataset(qctx->client);
sigclone = query_newrdataset(qctx->client);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment