]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
add body to ifstatement if locks disabled.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 7 Feb 2014 12:10:06 +0000 (12:10 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 7 Feb 2014 12:10:06 +0000 (12:10 +0000)
git-svn-id: file:///svn/unbound/trunk@3076 be551aaa-1e26-0410-a405-d3ace91eadb9

libunbound/libworker.c

index c33f687df9dc029a8f2a7385d3e112e0a20b0d85..fbf7c26c61a5e13ccc564ce201fff21682eaba14 100644 (file)
@@ -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,