lock_protect mutex in cachedb.

git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4331 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
wouter 2017-08-31 14:16:07 +00:00
parent 15de64688c
commit 3d60e536a4

View File

@ -85,6 +85,7 @@ testframe_init(struct module_env* env, struct cachedb_env* cachedb_env)
return 0;
}
lock_basic_init(&d->lock);
lock_protect(&d->lock, d, sizeof(*d));
return 1;
}