resolved: properly return start index when appending RR to packet

This commit is contained in:
Lennart Poettering
2014-07-30 19:24:13 +02:00
parent 2d4c5cbc0e
commit 351e6342d5
+3
View File
@@ -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: