diff --git a/bin/named/server.c b/bin/named/server.c index 1a46401575..e45759d64b 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.495.10.13 2008/05/29 23:46:34 tbox Exp $ */ +/* $Id: server.c,v 1.495.10.14 2008/06/23 23:30:59 jinmei Exp $ */ /*! \file */ @@ -1337,6 +1337,15 @@ configure_view(dns_view_t *view, const cfg_obj_t *config, resopts, ns_g_dispatchmgr, dispatch4, dispatch6)); + if (resstats == NULL) { + CHECK(dns_generalstats_create(mctx, &resstats, + dns_resstatscounter_max)); + } + dns_view_setresstats(view, resstats); + if (resquerystats == NULL) + CHECK(dns_rdatatypestats_create(mctx, &resquerystats)); + dns_view_setresquerystats(view, resquerystats); + /* * Set the ADB cache size to 1/8th of the max-cache-size. */