1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 01:55:32 +03:00

resolved: fix marshalling of RRSIG records

The key tag is 16, not 8 bits.
This commit is contained in:
Tom Gundersen 2015-07-08 13:52:48 +02:00
parent 9a50ce20ef
commit 0b1b17d325

View File

@ -691,7 +691,7 @@ int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, size_t *star
if (r < 0)
goto fail;
r = dns_packet_append_uint8(p, rr->rrsig.key_tag, NULL);
r = dns_packet_append_uint16(p, rr->rrsig.key_tag, NULL);
if (r < 0)
goto fail;