uint16_tobuffer was used instead of uint8_tobuffer when adding the
scheme to the buffer. This produced a record that was one octet
too long. This has been fixed.
(cherry picked from commit
3180e5045978ce9fef524e98a66c0fdc7d7b783c)
UNUSED(rdclass);
RETERR(uint16_tobuffer(dsync->type, target));
- RETERR(uint16_tobuffer(dsync->scheme, target));
+ RETERR(uint8_tobuffer(dsync->scheme, target));
RETERR(uint16_tobuffer(dsync->port, target));
dns_name_toregion(&dsync->target, ®ion);
return isc_buffer_copyregion(target, ®ion);