CID 436299: Null pointer dereference in lib/dns/resolver.c
Coverity Scan claims a possible null pointer dereferences in lib/dns/resolver.c
(via 03127891):
/lib/dns/resolver.c: 10620 in dns_resolver_createfetch()
10614
10615 /* On success, the fctx is locked in get_attached_fctx() */
10616
10617 INSIST(!SHUTTINGDOWN(fctx));
10618
10619 /* Is this a duplicate? */
>>> CID 436299: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "fctx" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
10620 if (fctx != NULL && client != NULL) {
10621 dns_fetchresponse_t *resp = NULL;
10622 for (resp = ISC_LIST_HEAD(fctx->resps); resp != NULL;
10623 resp = ISC_LIST_NEXT(resp, link))
10624 {
10625 if (resp->client != NULL && resp->id == id &&