4102. [bug] Fix a use after free bug introduced in change
#4094. [RT #39281]
+4102. [bug] Fix a use after free bug introduced in change
+ #4094. [RT #39281]
+
4101. [bug] dig: the +split and +rrcomments options didn't
work with +short. [RT #39291]
isc_boolean_t empty;
resquery_t *query;
fetchctx_t *fctx;
+ unsigned int bucket;
REQUIRE(queryp != NULL);
query = *queryp;
fctx = query->fctx;
res = fctx->res;
+ bucket = fctx->bucketnum;
fctx->nqueries--;
- LOCK(&res->buckets[fctx->bucketnum].lock);
+ LOCK(&res->buckets[bucket].lock);
empty = fctx_decreference(query->fctx);
- UNLOCK(&res->buckets[fctx->bucketnum].lock);
+ UNLOCK(&res->buckets[bucket].lock);
query->magic = 0;
isc_mem_put(query->mctx, query, sizeof(*query));