mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix OpenBSD asynclook lock free that gets used later (fix test code).
git-svn-id: file:///svn/unbound/trunk@3638 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
d858886499
commit
fc66af5eea
2 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
24 February 2016: Wouter
|
||||||
|
- Fix OpenBSD asynclook lock free that gets used later (fix test code).
|
||||||
|
|
||||||
23 February 2016: Wouter
|
23 February 2016: Wouter
|
||||||
- ub_ctx_set_stub() function for libunbound to config stub zones.
|
- ub_ctx_set_stub() function for libunbound to config stub zones.
|
||||||
- sorted ubsyms.def file with exported libunbound functions.
|
- sorted ubsyms.def file with exported libunbound functions.
|
||||||
|
|
|
||||||
|
|
@ -335,12 +335,17 @@ ext_thread(void* arg)
|
||||||
r = ub_wait(inf->ctx);
|
r = ub_wait(inf->ctx);
|
||||||
checkerr("ub_ctx_wait", r);
|
checkerr("ub_ctx_wait", r);
|
||||||
}
|
}
|
||||||
|
/* if these locks are destroyed, or if the async_ids is freed, then
|
||||||
|
a use-after-free happens in another thread.
|
||||||
|
The allocation is only part of this test, though. */
|
||||||
|
/*
|
||||||
if(async_ids) {
|
if(async_ids) {
|
||||||
for(i=0; i<inf->numq; i++) {
|
for(i=0; i<inf->numq; i++) {
|
||||||
lock_basic_destroy(&async_ids[i].lock);
|
lock_basic_destroy(&async_ids[i].lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(async_ids);
|
free(async_ids);
|
||||||
|
*/
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue