From: Wouter Wijngaards Date: Fri, 7 Feb 2014 12:10:06 +0000 (+0000) Subject: add body to ifstatement if locks disabled. X-Git-Tag: release-1.4.22rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=319c2ba5fc72e8cbe9eabd97d4759bd3dafa0947;p=thirdparty%2Funbound.git add body to ifstatement if locks disabled. git-svn-id: file:///svn/unbound/trunk@3076 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/libunbound/libworker.c b/libunbound/libworker.c index c33f687df..fbf7c26c6 100644 --- a/libunbound/libworker.c +++ b/libunbound/libworker.c @@ -219,8 +219,9 @@ libworker_setup(struct ub_ctx* ctx, int is_bg, struct event_base* eb) if(numports == 0) { int locked = !w->is_bg || w->is_bg_thread; libworker_delete(w); - if(locked) + if(locked) { lock_basic_unlock(&ctx->cfglock); + } return NULL; } w->back = outside_network_create(w->base, cfg->msg_buffer_size,