mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
remove the 'name_coff' parameter in dns_name_towire()
this parameter was added as a (minor) optimization for cases where dns_name_towire() is run repeatedly with the same compression context, as when rendering all of the rdatas in an rdataset. it is currently only used in one place. we now simplify the interface by removing the extra parameter. the compression offset value is now part of the compression context, and can be activated when needed by calling dns_compress_setmultiuse(). multiuse mode is automatically deactivated by any subsequent call to dns_compress_permitted().
This commit is contained in:
@@ -341,7 +341,7 @@ towire_sig(ARGS_TOWIRE) {
|
||||
dns_name_init(&name);
|
||||
dns_name_fromregion(&name, &sr);
|
||||
isc_region_consume(&sr, name_length(&name));
|
||||
RETERR(dns_name_towire(&name, cctx, target, NULL));
|
||||
RETERR(dns_name_towire(&name, cctx, target));
|
||||
|
||||
/*
|
||||
* Signature.
|
||||
|
Reference in New Issue
Block a user