From 63eb403d3fb935d5b93c68a2645f582d7b2c4b5a Mon Sep 17 00:00:00 2001 From: Daniel Stirnimann Date: Tue, 29 Mar 2016 15:26:20 +0200 Subject: [PATCH] Cleanup --- rrsig.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rrsig.c b/rrsig.c index 124bd6c..d932939 100644 --- a/rrsig.c +++ b/rrsig.c @@ -198,7 +198,6 @@ void *verification_thread(void *dummy) int r; d->next = NULL; r = EVP_VerifyFinal(&d->ctx, (unsigned char *)d->rr->signature.data, d->rr->signature.length, d->key->pkey); - EVP_MD_CTX_cleanup(&d->ctx); if (r == 1) { d->ok = 1; } else { @@ -251,7 +250,6 @@ static void schedule_verification(struct verification_data *d) int r; G.stats.signatures_verified++; r = EVP_VerifyFinal(&d->ctx, (unsigned char *)d->rr->signature.data, d->rr->signature.length, d->key->pkey); - EVP_MD_CTX_cleanup(&d->ctx); if (r == 1) { d->ok = 1; } else { @@ -394,6 +392,7 @@ static void *rrsig_validate(struct rr *rrv) } key = (struct rr_dnskey *)key->rr.next; } + return rr; }