From a0abd77baacdd97272356faab5efc79dd1483077 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 23 Mar 2000 17:56:24 +0000 Subject: [PATCH] dns_name_downcase() was not calling isc_buffer_add(), so buffer would always be empty. This would cause name digesting to fail as well. Remove some unused variables left over from the removal of local compression. --- lib/dns/name.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/dns/name.c b/lib/dns/name.c index db91874f1b..1ea70c744e 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -1916,6 +1916,8 @@ dns_name_downcase(dns_name_t *source, dns_name_t *name, ISC_FALSE); } + isc_buffer_add(target, name->length); + return (ISC_R_SUCCESS); } @@ -2123,18 +2125,13 @@ dns_name_fromwire(dns_name_t *name, isc_buffer_t *source, isc_buffer_t *target) { unsigned char *cdata, *ndata; - unsigned int cused, hops, nrem, nused, labels, n, i, ll; + unsigned int cused, hops, nrem, nused, labels, n; unsigned int current, new_current, biggest_pointer; isc_boolean_t saw_bitstring, done; fw_state state = fw_start; unsigned int c; unsigned char *offsets; dns_offsets_t odata; - dns_name_t suffix; - dns_label_t label; - dns_labeltype_t labeltype; - unsigned int bits; - dns_bitlabel_t bit; /* * Copy the possibly-compressed name at source into target,