Commit d55fedfc authored by Bob Halley's avatar Bob Halley
Browse files

initialize values to avoid INSIST(l->nwactive == 0) when starting

parent 8a17d1e7
......@@ -391,7 +391,13 @@ tcp_listener_allocate(isc_mem_t *mctx, u_int nwmax)
l->ctxs = isc_mem_get(mctx, sizeof(tcp_cctx_t *) * nwmax);
RUNTIME_CHECK(l->ctxs != NULL); /* XXX should be non-fatal? */
l->sock = NULL;
l->nwstart = 0;
l->nwkeep = 0;
l->nwmax = nwmax;
l->mctx = mctx;
l->dispatch = NULL;
l->nwactive = 0;
return (l);
}
......
......@@ -206,7 +206,13 @@ udp_listener_allocate(isc_mem_t *mctx, u_int nwmax)
l->ctxs = isc_mem_get(mctx, sizeof(udp_cctx_t *) * nwmax);
RUNTIME_CHECK(l->ctxs != NULL); /* XXX should be non-fatal? */
l->sock = NULL;
l->nwstart = 0;
l->nwkeep = 0;
l->nwmax = nwmax;
l->mctx = mctx;
l->dispatch = NULL;
l->nwactive = 0;
return (l);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment