4211. [bug] Ensure that lwresd gets at least one task to work

with if enabled. [RT #40652]
This commit is contained in:
Mark Andrews
2015-09-17 14:11:49 +10:00
parent f43e5c8ed2
commit 09177840c7
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
4211. [bug] Ensure that lwresd gets at least one task to work
with if enabled. [RT #40652]
4210. [cleanup] Silence use after free false positive. [RT #40743]
4209. [bug] Address resource leaks in dlz modules. [RT #40654]

View File

@@ -398,6 +398,9 @@ ns_lwdmanager_create(isc_mem_t *mctx, const cfg_obj_t *lwres,
else
lwresd->ntasks = ns_g_cpus;
if (lwresd->ntasks == 0)
lwresd->ntasks = 1;
obj = NULL;
(void)cfg_map_get(lwres, "lwres-clients", &obj);
if (obj != NULL) {
@@ -638,7 +641,8 @@ listener_startclients(ns_lwreslistener_t *listener) {
}
/*
* Ensure that we have created at least one.
* If the list is empty return now with the previous
* ns_lwdclientmgr_create() result.
*/
if (ISC_LIST_EMPTY(listener->cmgrs))
return (result);