mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 16:49:35 -05:00
- Fix crash after reload where a stats lookup could reference old key
cache and neg cache structures.
This commit is contained in:
parent
9b3f3101e3
commit
2c4be0c201
3 changed files with 18 additions and 12 deletions
|
|
@ -3,6 +3,8 @@
|
|||
because dnscrypt-proxy (2.0.36) does not support the test setup
|
||||
any more, and also the config file format does not seem to have
|
||||
the appropriate keys to recreate that setup.
|
||||
- Fix crash after reload where a stats lookup could reference old key
|
||||
cache and neg cache structures.
|
||||
|
||||
10 January 2020: Wouter
|
||||
- Fix the relationship between serve-expired and prefetch options,
|
||||
|
|
|
|||
|
|
@ -72,6 +72,8 @@ echo "$PRE/unbound-control -c ub.conf stats"
|
|||
$PRE/unbound-control -c ub.conf stats > tmp.$$
|
||||
if test $? -ne 0; then
|
||||
echo "wrong exit value after success"
|
||||
cat fwd.log
|
||||
cat unbound.log
|
||||
exit 1
|
||||
fi
|
||||
if grep "^total.num.queries=[1-9][0-9]*$" tmp.$$; then
|
||||
|
|
|
|||
|
|
@ -200,7 +200,9 @@ val_deinit(struct module_env* env, int id)
|
|||
anchors_delete(env->anchors);
|
||||
env->anchors = NULL;
|
||||
key_cache_delete(val_env->kcache);
|
||||
env->key_cache = NULL;
|
||||
neg_cache_delete(val_env->neg_cache);
|
||||
env->neg_cache = NULL;
|
||||
free(val_env->nsec3_keysize);
|
||||
free(val_env->nsec3_maxiter);
|
||||
free(val_env);
|
||||
|
|
|
|||
Loading…
Reference in a new issue