]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Set SHM ECS memory usage to 0 when module not loaded.
authorRalph Dolmans <ralph@nlnetlabs.nl>
Wed, 12 Apr 2017 13:51:34 +0000 (13:51 +0000)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Wed, 12 Apr 2017 13:51:34 +0000 (13:51 +0000)
git-svn-id: file:///svn/unbound/trunk@4111 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/shm_side/shm_main.c

index 0b09222b1a6df7dbbf2f1abc04751e0cb90f9a4c..cac2abbd13116bb1c5ee93c5dab1bec5c3e8e24f 100644 (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.
index 32ba73f1ea0cc7fb5efacefc4741d8cd8a7222c2..bfe14f3d637ce8df9bd6fb59c0f298cbc8ba8035 100644 (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));