Cancel requests without callback

This commit is contained in:
Willem Toorop 2017-02-16 22:55:15 +01:00
parent a6859a08d3
commit 91dd991348
1 changed files with 1 additions and 1 deletions

View File

@ -2918,7 +2918,7 @@ _getdns_context_cancel_request(getdns_context *context,
/* do the cancel */ /* do the cancel */
cancel_dns_req(dnsreq); cancel_dns_req(dnsreq);
if (fire_callback) { if (fire_callback && dnsreq->user_callback) {
context->processing = 1; context->processing = 1;
dnsreq->user_callback(context, GETDNS_CALLBACK_CANCEL, dnsreq->user_callback(context, GETDNS_CALLBACK_CANCEL,
NULL, dnsreq->user_pointer, transaction_id); NULL, dnsreq->user_pointer, transaction_id);