Commit b23f74ce authored by Marek Vavruša's avatar Marek Vavruša

lib/zonecut: clear TA if its NS isn't cached

this fixes a bug when NS drops out of cache, but it's TA not,
so i.e. we end up with TA 'cz' and NS in '.', but we need the root TA
parent 374c9e71
......@@ -417,6 +417,8 @@ int kr_zonecut_find_cached(struct kr_context *ctx, struct kr_zonecut *cut, const
update_cut_name(cut, label);
mm_free(cut->pool, qname);
return kr_ok();
} else { /* Clear TA, as it is below any known NS. */
knot_rrset_free(&cut->trust_anchor, cut->pool);
}
/* Subtract label from QNAME. */
if (!is_root) {
......
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