mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Fix comparison between signed and unsigned integer expressions
Simple typecast to size_t should be enough to silence the warning on ARMv7, even though the code is in fact correct, because the readlen is checked for being < 0 in the block before the warning.
This commit is contained in:
@@ -704,7 +704,7 @@ https_readcb(isc_nmhandle_t *handle, isc_result_t result, isc_region_t *region,
|
||||
return;
|
||||
}
|
||||
|
||||
if (readlen < region->length) {
|
||||
if ((size_t)readlen < region->length) {
|
||||
INSIST(session->bufsize == 0);
|
||||
INSIST(region->length - readlen < MAX_DNS_MESSAGE_SIZE);
|
||||
memmove(session->buf, region->base, region->length - readlen);
|
||||
|
Reference in New Issue
Block a user