Unchecked returns in resolver.c
10355 if (fctx->qmin_labels < nlabels) {
10356 /*
10357 * We want to query for qmin_labels from fctx->name
10358 */
10359 dns_fixedname_t fname;
10360 dns_fixedname_init(&fname);
10361 dns_name_split(&fctx->name,
10362 fctx->qmin_labels,
10363 NULL, dns_fixedname_name(&fname));
CID 1436960 (#1 of 2): Unchecked return value (CHECKED_RETURN) [select issue]
10364 dns_name_dup(dns_fixedname_name(&fname), fctx->mctx,
10365 &fctx->qminname);
10366 fctx->qmintype = dns_rdatatype_ns;
10367 fctx->minimized = true;
10368 } else {
10369 /* Minimization is done, we'll ask for whole qname */
10370 fctx->qmintype = fctx->type;
CID 1436960 (#2 of 2): Unchecked return value (CHECKED_RETURN)
8. check_return: Calling dns_name_dup without checking return value (as is done elsewhere 59 out of 67 times).
10371 dns_name_dup(&fctx->name, fctx->mctx, &fctx->qminname);
10372 fctx->minimized = false;
10373 }
Edited by Mark Andrews