Merge pull request #2357 from keszybz/warnings-2
Remove gcc warnings v2
This commit is contained in:
@@ -1071,7 +1071,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