]> git.ipfire.org Git - thirdparty/bind9.git/commit
Silence CID 464884 (REVERSE_INULL)
authorMark Andrews <marka@isc.org>
Mon, 28 Aug 2023 06:25:16 +0000 (16:25 +1000)
committerMark Andrews <marka@isc.org>
Tue, 29 Aug 2023 23:45:12 +0000 (23:45 +0000)
commit60630fe3aaa61daa27e08015f6aea80441ca5f50
tree62c803db5af8a2557a5be68eea0c8184f496b5d4
parent62fb970d0a2e36612df59f1d584f6b5d3acb9899
Silence CID 464884 (REVERSE_INULL)

    *** CID 464884:  Null pointer dereferences  (REVERSE_INULL)
    /bin/tests/system/dyndb/driver/db.c: 644 in create_db()
    638
    639      *dbp = (dns_db_t *)sampledb;
    640
    641      return (ISC_R_SUCCESS);
    642
    643     cleanup:
       CID 464884:  Null pointer dereferences  (REVERSE_INULL)
       Null-checking "sampledb" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
    644      if (sampledb != NULL) {
    645      if (dns_name_dynamic(&sampledb->common.origin)) {
    646      dns_name_free(&sampledb->common.origin, mctx);
    647      }
    648
    649      isc_mem_putanddetach(&sampledb->common.mctx, sampledb,
bin/tests/system/dyndb/driver/db.c