]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix async bool.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 3 May 2018 14:37:04 +0000 (14:37 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 3 May 2018 14:37:04 +0000 (14:37 +0000)
git-svn-id: file:///svn/unbound/trunk@4679 be551aaa-1e26-0410-a405-d3ace91eadb9

libunbound/context.c

index 95e6a8e7fbe622693e6080b35fc594d4c20413bf..6ac8086bf6727232156c77705a5aa27421e110f5 100644 (file)
@@ -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;