summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-30 19:23:50 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-30 19:24:13 +0200
commit351e6342d59c790758c216db3c61e17cc2860fa9 (patch)
tree8756ab6dea255a6a8bea36a9884d1565e3f5792d /src
parent2d4c5cbc0ed3ccb09dc086a040088b454c22c644 (diff)
resolved: properly return start index when appending RR to packet
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-packet.c3
1 files changed, 3 insertions, 0 deletions
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: