]> git.ipfire.org Git - thirdparty/bind9.git/commit
Silence CID 281450: Dereference before null check
authorMark Andrews <marka@isc.org>
Tue, 16 Feb 2021 05:15:25 +0000 (16:15 +1100)
committerMark Andrews <marka@isc.org>
Tue, 23 Feb 2021 11:58:40 +0000 (11:58 +0000)
commit5fb168fab397eebab6fe4749f52d2254fd825af2
tree3e191b44f25c76e5fc40c53c3c1888b45b8f49f0
parent441aadab6c0ed5945263eea9154934c4736cfd03
Silence CID 281450: Dereference before null check

remove redundant 'inst != NULL' test

    162cleanup:

    CID 281450 (#1 of 1): Dereference before null check (REVERSE_INULL)
    check_after_deref: Null-checking inst suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
    163        if (result != ISC_R_SUCCESS && inst != NULL) {
    164                plugin_destroy((void **)&inst);
    165        }
bin/tests/system/hooks/driver/test-async.c