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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user