Commit b06ac133 authored by Michael Graff's avatar Michael Graff
Browse files

check for NULL before filling in retured node pointer.

parent 3165855e
...@@ -2413,8 +2413,10 @@ cache_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version, ...@@ -2413,8 +2413,10 @@ cache_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
* deepest zone cut. * deepest zone cut.
*/ */
if (nsheader != NULL) { if (nsheader != NULL) {
if (nodep != NULL) {
new_reference(search.rbtdb, node); new_reference(search.rbtdb, node);
*nodep = node; *nodep = node;
}
bind_rdataset(search.rbtdb, node, nsheader, search.now, bind_rdataset(search.rbtdb, node, nsheader, search.now,
rdataset); rdataset);
if (nssig != NULL) if (nssig != NULL)
......
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