mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
test for == 0 rather than <= as value is unsigned
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2012-2017 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@@ -766,7 +766,7 @@ add_log_str(isc_buffer_t *lb, const char *str, unsigned int str_len) {
|
||||
|
||||
isc_buffer_availableregion(lb, ®ion);
|
||||
if (str_len >= region.length) {
|
||||
if (region.length <= 0)
|
||||
if (region.length == 0U)
|
||||
return;
|
||||
str_len = region.length;
|
||||
}
|
||||
|
Reference in New Issue
Block a user