]> git.ipfire.org Git - thirdparty/bind9.git/commit
Silence CID 320481: Null pointer dereferences
authorMark Andrews <marka@isc.org>
Sun, 21 Feb 2021 22:28:37 +0000 (09:28 +1100)
committerMark Andrews <marka@isc.org>
Tue, 23 Feb 2021 12:45:45 +0000 (12:45 +0000)
commit658c950d7b96e9af2d6edce68d8944fd257af114
tree41065bb6f3fbd9e3e23a318eca56a4ccc7130b0b
parent3e9fba94e3a717310027c933c01572cc38bc5975
Silence CID 320481: Null pointer dereferences

    *** CID 320481:  Null pointer dereferences  (REVERSE_INULL)
    /bin/tests/wire_test.c: 261 in main()
    255      process_message(input);
    256      }
    257      } else {
    258      process_message(input);
    259      }
    260
       CID 320481:  Null pointer dereferences  (REVERSE_INULL)
       Null-checking "input" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
    261      if (input != NULL) {
    262      isc_buffer_free(&input);
    263      }
    264
    265      if (printmemstats) {
    266      isc_mem_stats(mctx, stdout);
bin/tests/wire_test.c