mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-26 11:22:52 -04:00
dsync_from struct produced an invalid record
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 3180e50459)
This commit is contained in:
parent
963737fa3f
commit
19cf7bb2cd
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ fromstruct_dsync(ARGS_FROMSTRUCT) {
|
|||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue