diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 39f2fd20e9..d2c949c227 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -3982,7 +3982,7 @@ fctx_try(fetchctx_t *fctx, bool retrying, bool badcache) { &fctx->qminfetch); if (result != ISC_R_SUCCESS) { LOCK(&fctx->res->buckets[fctx->bucketnum].lock); - bucket_empty = fctx_decreference(fctx); + RUNTIME_CHECK(!fctx_decreference(fctx)); UNLOCK(&fctx->res->buckets[fctx->bucketnum].lock); fctx_done(fctx, DNS_R_SERVFAIL, __LINE__); }