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

zonedb: added name size check

cov#1165387
parent 89611f64
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,10 @@ int knot_zonedb_insert(knot_zonedb_t *db, zone_t *zone)
}
int name_size = knot_dname_size(zone->name);
if (name_size < 0) {
return KNOT_EINVAL;
}
return hhash_insert(db->hash, (const char*)zone->name, name_size, zone);
}
......
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