2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Remove unused support for fromwire(DNS_NAME_DOWNCASE)

Most of this change is fixing dns_rdata_fromwire() so
it does not propagate the unused options variable.
This commit is contained in:
Tony Finch
2022-11-09 17:10:59 +00:00
committed by Tony Finch
parent ecd428240b
commit 50ab648f8a
89 changed files with 72 additions and 115 deletions

View File

@@ -877,7 +877,7 @@ getname(dns_name_t *name, isc_buffer_t *source, dns_message_t *msg,
*/
tries = 0;
while (tries < 2) {
result = dns_name_fromwire(name, source, dctx, 0, scratch);
result = dns_name_fromwire(name, source, dctx, scratch);
if (result == ISC_R_NOSPACE) {
tries++;
@@ -922,7 +922,7 @@ getrdata(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t dctx,
/* XXX possibly change this to a while (tries < 2) loop */
for (;;) {
result = dns_rdata_fromwire(rdata, rdclass, rdtype, source,
dctx, 0, scratch);
dctx, scratch);
if (result == ISC_R_NOSPACE) {
if (tries == 0) {