Skip to content
Snippets Groups Projects
Commit a9df8028 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixed missing ptr dereference in zonedb lookup.

parent 617c5d95
Branches
Tags
No related merge requests found
......@@ -113,7 +113,7 @@ knot_zone_t *knot_zonedb_find_zone(const knot_zonedb_t *db,
size_t klen = knot_dname_size(zone_name);
value_t *val = hattrie_tryget(db->zone_tree, key, klen);
if (!val) return NULL;
return (knot_zone_t *)val;
return (knot_zone_t *)*val;
}
/*----------------------------------------------------------------------------*/
......
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