From a8c8fa6bc6fb25b0b5099a5ae9f5325013f2abd4 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 3 May 2018 14:37:04 +0000 Subject: [PATCH] Fix async bool. git-svn-id: file:///svn/unbound/trunk@4679 be551aaa-1e26-0410-a405-d3ace91eadb9 --- libunbound/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libunbound/context.c b/libunbound/context.c index 95e6a8e7f..6ac8086bf 100644 --- a/libunbound/context.c +++ b/libunbound/context.c @@ -142,7 +142,7 @@ context_new(struct ub_ctx* ctx, const char* name, int rrtype, int rrclass, } lock_basic_unlock(&ctx->cfglock); q->node.key = &q->querynum; - q->async = (cb != NULL && cb_event != NULL); + q->async = (cb != NULL || cb_event != NULL); q->cb = cb; q->cb_event = cb_event; q->cb_arg = cbarg;