Skip to content
Snippets Groups Projects
Commit 1e16efe4 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Add missing lock.

parent 25b7138b
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,10 @@ static int init_dnssec_structs(const knot_zone_t *zone,
}
// Override signature lifetime, if set in config
int sig_lf = ((zonedata_t *)knot_zone_data(zone))->conf->sig_lifetime;
zonedata_t *zd = (zonedata_t *)zone->data;
pthread_mutex_lock(&zd->lock);
int sig_lf = zd->conf->sig_lifetime;
pthread_mutex_unlock(&zd->lock);
if (sig_lf > 0) {
policy->sign_lifetime = sig_lf;
}
......
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