Skip to content
Snippets Groups Projects
Commit 1fba56f7 authored by Libor Peltan's avatar Libor Peltan
Browse files

onlinesign: fix of 2fff1e96 fix race cond

parent 03b48af8
No related branches found
No related tags found
No related merge requests found
Pipeline #41136 passed
......@@ -250,7 +250,10 @@ static knot_rrset_t *sign_rrset(const knot_dname_t *owner,
return NULL;
}
online_sign_ctx_t *ctx = knotd_mod_ctx(mod);
pthread_rwlock_rdlock(&ctx->signing_mutex);
int ret = knotd_mod_dnssec_sign_rrset(mod, rrsig, copy, mm);
pthread_rwlock_unlock(&ctx->signing_mutex);
if (ret != KNOT_EOK) {
knot_rrset_free(copy, NULL);
knot_rrset_free(rrsig, mm);
......
......@@ -154,7 +154,7 @@ def watch_ksk_rollover(t, server, zone, before_keys, after_keys, total_keys, des
wait_for_dnskey_count(t, server, after_keys, 20)
check_zone(server, zone, after_keys, 1, 1, 1, desc + ": old key removed")
t = Test()
t = Test(stress=False)
ModOnlineSign.check()
......
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