From 351e6342d59c790758c216db3c61e17cc2860fa9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 30 Jul 2014 19:23:50 +0200 Subject: resolved: properly return start index when appending RR to packet --- src/resolve/resolved-dns-packet.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resolve') diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index 1636362afe..3e6c9a480b 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -574,6 +574,9 @@ int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, size_t *star goto fail; p->size = end; + if (start) + *start = saved_size; + return 0; fail: -- cgit v1.2.3-54-g00ecf