mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
- Fix locking for libunbound context setup with broken port config.
git-svn-id: file:///svn/unbound/trunk@5088 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
c2e3baa81a
commit
31b677b35f
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
29 January 2019: Wouter
|
29 January 2019: Wouter
|
||||||
- Fix spelling of tls-ciphers in example.conf.in.
|
- Fix spelling of tls-ciphers in example.conf.in.
|
||||||
- Fix #4224: auth_xfr_notify.rpl test broken due to typo
|
- Fix #4224: auth_xfr_notify.rpl test broken due to typo
|
||||||
|
- Fix locking for libunbound context setup with broken port config.
|
||||||
|
|
||||||
28 January 2019: Wouter
|
28 January 2019: Wouter
|
||||||
- ub_ctx_set_tls call for libunbound that enables DoT for the machines
|
- ub_ctx_set_tls call for libunbound that enables DoT for the machines
|
||||||
|
|
|
||||||
|
|
@ -222,11 +222,10 @@ libworker_setup(struct ub_ctx* ctx, int is_bg, struct ub_event_base* eb)
|
||||||
}
|
}
|
||||||
numports = cfg_condense_ports(cfg, &ports);
|
numports = cfg_condense_ports(cfg, &ports);
|
||||||
if(numports == 0) {
|
if(numports == 0) {
|
||||||
int locked = !w->is_bg || w->is_bg_thread;
|
if(!w->is_bg || w->is_bg_thread) {
|
||||||
libworker_delete(w);
|
|
||||||
if(locked) {
|
|
||||||
lock_basic_unlock(&ctx->cfglock);
|
lock_basic_unlock(&ctx->cfglock);
|
||||||
}
|
}
|
||||||
|
libworker_delete(w);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
w->back = outside_network_create(w->base, cfg->msg_buffer_size,
|
w->back = outside_network_create(w->base, cfg->msg_buffer_size,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue