bad sizeof declaration in main
** CID 331858: Incorrect expression (SIZEOF_MISMATCH)
/lib/ns/interfacemgr.c: 274 in ns_interfacemgr_create()
________________________________________________________________________________________________________
*** CID 331858: Incorrect expression (SIZEOF_MISMATCH)
/lib/ns/interfacemgr.c: 274 in ns_interfacemgr_create()
268 #else /* ifdef USE_ROUTE_SOCKET */
269 isc_refcount_init(&mgr->references, 1);
270 #endif /* ifdef USE_ROUTE_SOCKET */
271 mgr->magic = IFMGR_MAGIC;
272 *mgrp = mgr;
273
CID 331858: Incorrect expression (SIZEOF_MISMATCH)
Passing argument "mgr->ncpus * 184UL /* sizeof (*mgr->clientmgrs[0]) */" to function "isc__mem_get" and then casting the return value to "ns_clientmgr_t **" is suspicious.
274 mgr->clientmgrs = isc_mem_get(mgr->mctx,
275 mgr->ncpus * sizeof(*mgr->clientmgrs[0]));
276 for (size_t i = 0; i < (size_t)mgr->ncpus; i++) {
277 result = ns_clientmgr_create(mgr->sctx, mgr->taskmgr,
278 mgr->timermgr, mgr->aclenv, (int)i,
279 &mgr->clientmgrs[i]);
________________________________________________________________________________________________________