From: Wouter Wijngaards Date: Thu, 3 May 2018 14:37:04 +0000 (+0000) Subject: Fix async bool. X-Git-Tag: release-1.7.2rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c8fa6bc6fb25b0b5099a5ae9f5325013f2abd4;p=thirdparty%2Funbound.git Fix async bool. git-svn-id: file:///svn/unbound/trunk@4679 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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;