CID 320483: API usage errors (LOCK)
** CID 320483: API usage errors (LOCK)
/bin/dig/dighost.c: 2133 in _new_query()
________________________________________________________________________________________________________
*** CID 320483: API usage errors (LOCK)
/bin/dig/dighost.c: 2133 in _new_query()
2127 _new_query(dig_lookup_t *lookup, char *servname, char *userarg,
2128 const char *file, unsigned int line) {
2129 dig_query_t *query = NULL;
2130
2131 query = isc_mem_allocate(mctx, sizeof(dig_query_t));
2132 debug("create query %p linked to lookup %p", query, lookup);
CID 320483: API usage errors (LOCK)
"isc__mempool_get" unlocks "commctx->lock" while it is unlocked.
2133 *query = (dig_query_t){ .sendbuf = lookup->renderbuf,
2134 .servname = servname,
2135 .userarg = userarg,
2136 .first_pass = true,
2137 .warn_id = true,
2138 .recvspace = isc_mempool_get(commctx),