mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
lock_protect mutex in cachedb.
git-svn-id: file:///svn/unbound/trunk@4331 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
6a5e7be380
commit
4194c613bf
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue