diff options
author | Tom Gundersen <teg@jklm.no> | 2015-12-03 01:52:01 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-12-03 01:52:01 +0100 |
commit | 3f967a4ccf1846514bd638f38e4f487bb4e1c317 (patch) | |
tree | 07bb4f6a9b1defea1df208a2f5097433a2e9787e /src/resolve/resolved-bus.c | |
parent | 5449f1e3312e5467ce321fc2d7aa16a0ce0c60d2 (diff) | |
parent | 964ef14c2525f3a0311acb24c6814c5bfbe43cfc (diff) |
Merge pull request #2087 from poettering/dnssec
Basic DNSSEC support, and unrelated fixes
Diffstat (limited to 'src/resolve/resolved-bus.c')
-rw-r--r-- | src/resolve/resolved-bus.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/resolve/resolved-bus.c b/src/resolve/resolved-bus.c index f86c4ceb05..ddde3af0c3 100644 --- a/src/resolve/resolved-bus.c +++ b/src/resolve/resolved-bus.c @@ -425,8 +425,6 @@ fail: } static int bus_message_append_rr(sd_bus_message *m, DnsResourceRecord *rr, int ifindex) { - _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; - size_t start; int r; assert(m); @@ -443,17 +441,11 @@ static int bus_message_append_rr(sd_bus_message *m, DnsResourceRecord *rr, int i if (r < 0) return r; - r = dns_packet_new(&p, DNS_PROTOCOL_DNS, 0); + r = dns_resource_record_to_wire_format(rr, false); if (r < 0) return r; - p->refuse_compression = true; - - r = dns_packet_append_rr(p, rr, &start); - if (r < 0) - return r; - - r = sd_bus_message_append_array(m, 'y', DNS_PACKET_DATA(p) + start, p->size - start); + r = sd_bus_message_append_array(m, 'y', rr->wire_format, rr->wire_format_size); if (r < 0) return r; |