Commit adbb48b4 authored by Mark Andrews's avatar Mark Andrews
Browse files

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

parent ba713ac3
3789. [bug] Null pointer dereference on rbt creation failure.
3788. [bug] dns_peer_getrequestsit was returning request_nsid by
mistake.
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment