From 91dd991348168a18a377c4ad2325c01e989238e3 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 16 Feb 2017 22:55:15 +0100 Subject: [PATCH] Cancel requests without callback --- src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.c b/src/context.c index 66dcf6f9..b5eaf231 100644 --- a/src/context.c +++ b/src/context.c @@ -2918,7 +2918,7 @@ _getdns_context_cancel_request(getdns_context *context, /* do the cancel */ cancel_dns_req(dnsreq); - if (fire_callback) { + if (fire_callback && dnsreq->user_callback) { context->processing = 1; dnsreq->user_callback(context, GETDNS_CALLBACK_CANCEL, NULL, dnsreq->user_pointer, transaction_id);