diff --git a/src/cfgparse.c b/src/cfgparse.c index 91ca63d6a..cd90d7e80 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -3639,7 +3639,7 @@ out_uri_auth_compat: MT_LIST_INIT(&toremove_connections[i]); } } - newsrv->idle_orphan_conns = calloc((unsigned int)global.nbthread, sizeof(*newsrv->idle_orphan_conns)); + newsrv->idle_orphan_conns = calloc((unsigned short)global.nbthread, sizeof(*newsrv->idle_orphan_conns)); if (!newsrv->idle_orphan_conns) goto err; for (i = 0; i < global.nbthread; i++)