diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-21 16:04:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-21 16:04:59 +0200 |
commit | f6a5fec6b971e2a8c69d92ab20ed13693be82ddb (patch) | |
tree | 1d44bb4d68bdebb78f875d860ea086bba46c03fe /src/resolve/resolved-bus.c | |
parent | ef7051360aefca01d20f700ee74ac1baced59879 (diff) |
resolved: when passing RRs across the bus, make sure not to use name compression
We explicitly need to turn off name compression when marshalling or
demarshalling RRs for bus transfer, since they otherwise refer to packet
offsets that reference packets that are not transmitted themselves.
Diffstat (limited to 'src/resolve/resolved-bus.c')
-rw-r--r-- | src/resolve/resolved-bus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-bus.c b/src/resolve/resolved-bus.c index de5e8e9c29..1f23834ce3 100644 --- a/src/resolve/resolved-bus.c +++ b/src/resolve/resolved-bus.c @@ -542,6 +542,8 @@ static void bus_method_resolve_record_complete(DnsQuery *q) { if (r < 0) goto finish; + p->refuse_compression = true; + r = dns_packet_append_rr(p, answer->items[i].rr, &start); if (r < 0) goto finish; |