This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new eda0bd72c0 Coverity 1518607: Use of 32-bit time_t (#10502)
eda0bd72c0 is described below
commit eda0bd72c0f2ea076d7132ce322c8f53de54dd09
Author: Bryan Call <[email protected]>
AuthorDate: Mon Sep 25 06:58:10 2023 -0700
Coverity 1518607: Use of 32-bit time_t (#10502)
---
proxy/http/remap/NextHopConsistentHash.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/http/remap/NextHopConsistentHash.cc
b/proxy/http/remap/NextHopConsistentHash.cc
index 6f06e1c267..36467a627b 100644
--- a/proxy/http/remap/NextHopConsistentHash.cc
+++ b/proxy/http/remap/NextHopConsistentHash.cc
@@ -406,7 +406,7 @@ NextHopConsistentHash::findNextHop(TSHttpTxn txnp, void
*ih, time_t now)
// for retry.
if (!pRec->available.load() && host_stat == TS_HOST_STATUS_UP) {
_now == 0 ? _now = time(nullptr) : _now = now;
- if ((pRec->failedAt.load() + retry_time) <
static_cast<unsigned>(_now)) {
+ if ((pRec->failedAt.load() + retry_time) < _now) {
nextHopRetry = true;
result.last_parent = pRec->host_index;
result.last_lookup = pRec->group_index;