2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

3789. [bug] Null pointer dereference on rbt creation failure.

This commit is contained in:
Mark Andrews 2014-03-17 23:25:21 +11:00
parent ba713ac34a
commit adbb48b4a0
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
3789. [bug] Null pointer dereference on rbt creation failure.
3788. [bug] dns_peer_getrequestsit was returning request_nsid by
mistake.

View File

@ -865,7 +865,7 @@ dns_rbt_deserialize_tree(void *base_address, size_t filesize,
result = ISC_R_INVALIDFILE;
cleanup:
if (result != ISC_R_SUCCESS) {
if (result != ISC_R_SUCCESS && rbt != NULL) {
rbt->root = NULL;
rbt->nodecount = 0;
dns_rbt_destroy(&rbt);