mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
resolved: properly return start index when appending RR to packet
This commit is contained in:
parent
2d4c5cbc0e
commit
351e6342d5
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user