]> git.ipfire.org Git - thirdparty/bind9.git/commit
'dctx' must be non NULL, remove test.
authorMark Andrews <marka@isc.org>
Wed, 5 Feb 2020 05:51:01 +0000 (16:51 +1100)
committerMark Andrews <marka@isc.org>
Wed, 5 Feb 2020 07:37:17 +0000 (18:37 +1100)
commitfccf65a5852da5fa399f0720469f77555f49998b
tree7f8f68ff4598f19209d44d11a98b6aa28eca2052
parentbf7a99a3c1c1d9d355d37a14f15390f4d2be80f5
'dctx' must be non NULL, remove test.

1549 cleanup:
1550        if (dctx->dbiter != NULL)
1551                dns_dbiterator_destroy(&dctx->dbiter);
1552        if (dctx->db != NULL)
1553                dns_db_detach(&dctx->db);

CID 1452686 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking dctx suggests that it may
be null, but it has already been dereferenced on all paths
leading to the check.

1554        if (dctx != NULL)
1555                isc_mem_put(mctx, dctx, sizeof(*dctx));
lib/dns/masterdump.c