From: James Jones Date: Fri, 29 Apr 2022 12:33:43 +0000 (-0500) Subject: silence coverity complaint about possible overflow (CID #1469150) (#4474) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d417babb800579686b302813b23de5dc5f4ab7d4;p=thirdparty%2Ffreeradius-server.git silence coverity complaint about possible overflow (CID #1469150) (#4474) --- diff --git a/src/lib/server/trunk.c b/src/lib/server/trunk.c index ef77846b7a1..d602b831568 100644 --- a/src/lib/server/trunk.c +++ b/src/lib/server/trunk.c @@ -2362,7 +2362,7 @@ fr_trunk_request_t *fr_trunk_request_alloc(fr_trunk_t *trunk, request_t *request if (trunk->conf.max_req_per_conn && trunk->conf.max) { uint64_t limit; - limit = trunk->conf.max_req_per_conn * trunk->conf.max; + limit = (uint64_t) trunk->conf.max_req_per_conn * trunk->conf.max; if (trunk->pub.req_alloc >= limit) { RATE_LIMIT_LOCAL_ROPTIONAL(&trunk->limit_max_requests_alloc_log, RWARN, WARN, "Refusing to alloc requests - "