Skip to content
Snippets Groups Projects
Commit 29acf39a authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Fixed searching for zone when contents are missing

parent 9c684ee2
No related branches found
No related tags found
No related merge requests found
......@@ -240,7 +240,7 @@ DEBUG_KNOT_ZONEDB(
debug_knot_zonedb("Found zone for name %s: %p\n", name, zone);
free(name);
);
if (zone != NULL
if (zone != NULL && zone->contents != NULL
&& knot_dname_compare(zone->contents->apex->owner, dname) != 0
&& !knot_dname_is_subdomain(dname, zone->contents->apex->owner)) {
zone = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment