- Set SHM ECS memory usage to 0 when module not loaded.

git-svn-id: file:///svn/unbound/trunk@4111 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Ralph Dolmans 2017-04-12 13:51:34 +00:00
parent 1c02193ddb
commit 4b39a9eaf8
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
forwarding ECS.
- Properly check for allocation failure in local_data_find_tag_datas.
- Fix #1249: unbound doesn't return FORMERR to bogus ECS.
- Set SHM ECS memory usage to 0 when module not loaded.
11 April 2017: Ralph
- Display ECS module memory usage.

View file

@ -263,6 +263,7 @@ void shm_main_run(struct worker *worker)
shm_stat->mem.iter = (*worker->env.mesh->mods.mod[modstack]->get_mem)(&worker->env, modstack);
}
#ifdef CLIENT_SUBNET
shm_stat->mem.subnet = 0;
modstack = modstack_find(&worker->env.mesh->mods, "subnet");
if(modstack != -1) {
fptr_ok(fptr_whitelist_mod_get_mem(worker->env.mesh->mods.mod[modstack]->get_mem));