diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-01-13 15:08:48 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-01-18 15:21:28 -0500 |
commit | 555f5cdc2d437ac454cb83a9dee5e3f30be7ab0d (patch) | |
tree | 32019bf6eedc340c0b30a1ba94d7370a190b2575 | |
parent | e5d7bce12d95b38e592a2561b49a42d033cc82c1 (diff) |
resolve: fix return value from dns_packet_append_rr()
-rw-r--r-- | src/resolve/resolved-dns-packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index a8a8632491..2425cf148e 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -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; } |