From 2f36a62d162a0809540718671a392c92f4bf6c36 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 15 Aug 2018 16:14:46 +1000 Subject: [PATCH] use RUNTIME_CHECK --- lib/dns/resolver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__); }