Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Stirnimann committed Mar 29, 2016
1 parent 55c02f2 commit 63eb403
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rrsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -394,6 +392,7 @@ static void *rrsig_validate(struct rr *rrv)
}
key = (struct rr_dnskey *)key->rr.next;
}

return rr;
}

Expand Down

0 comments on commit 63eb403

Please sign in to comment.