mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
resolve: fix return value from dns_packet_append_rr()
This commit is contained in:
@@ -1083,7 +1083,7 @@ int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, size_t *star
|
||||
/* Let's calculate the actual data size and update the field */
|
||||
rdlength = p->size - rdlength_offset - sizeof(uint16_t);
|
||||
if (rdlength > 0xFFFF) {
|
||||
r = ENOSPC;
|
||||
r = -ENOSPC;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user