2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

silence coverity warning

This commit is contained in:
Mark Andrews
2014-05-28 10:43:19 +10:00
parent 358cc47a25
commit 57d5f5abe1

View File

@@ -4051,8 +4051,8 @@ adjustsrtt(dns_adbaddrinfo_t *addr, unsigned int rtt, unsigned int factor,
} else
new_srtt = addr->entry->srtt;
} else
new_srtt = (addr->entry->srtt / 10 * factor)
+ (rtt / 10 * (10 - factor));
new_srtt = ((isc_uint64_t)addr->entry->srtt / 10 * factor)
+ ((isc_uint64_t)rtt / 10 * (10 - factor));
addr->entry->srtt = (unsigned int) new_srtt;
addr->srtt = (unsigned int) new_srtt;