2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Simplify dns_name_init()

Remove the now-unused offsets parameter from dns_name_init().
This commit is contained in:
Ondřej Surý
2025-02-21 12:09:39 +01:00
parent 08e966df82
commit 04c2c2cbc8
95 changed files with 531 additions and 544 deletions

View File

@@ -255,7 +255,7 @@ dns_tsigkey_createfromkey(const dns_name_t *name, dst_algorithm_t algorithm,
if (creator != NULL) {
tkey->creator = isc_mem_get(mctx, sizeof(dns_name_t));
dns_name_init(tkey->creator, NULL);
dns_name_init(tkey->creator);
dns_name_dup(creator, mctx, tkey->creator);
}
@@ -608,7 +608,7 @@ dns_tsig_sign(dns_message_t *msg) {
.error = response ? msg->querytsigstatus : dns_rcode_noerror,
};
dns_name_init(&tsig.algorithm, NULL);
dns_name_init(&tsig.algorithm);
dns_name_clone(key->algorithm, &tsig.algorithm);
isc_buffer_init(&databuf, data, sizeof(data));