Skip to content
Snippets Groups Projects
Commit 0d19d792 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

DNSSEC: fix leak in remove_expired_rrsigs() on error recovery

CID: 1091464
parent e7f2f638
No related branches found
No related tags found
No related merge requests found
......@@ -217,14 +217,15 @@ static int remove_expired_rrsigs(const knot_rrset_t *covered,
}
if (result != KNOT_DNSSEC_EINVALID_SIGNATURE) {
return result;
break;
}
}
if (to_remove == NULL) {
to_remove = create_empty_rrsigs_for(rrsigs);
if (to_remove == NULL) {
return KNOT_ENOMEM;
result = KNOT_ENOMEM;
break;
}
}
......
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