resolved: fix marshalling of RRSIG records
authorTom Gundersen <teg@jklm.no>
Wed, 8 Jul 2015 11:52:48 +0000 (13:52 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 8 Jul 2015 11:53:39 +0000 (13:53 +0200)
The key tag is 16, not 8 bits.

src/resolve/resolved-dns-packet.c

index bb74b18..47cc975 100644 (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;