Skip to content

Commit

Permalink
Merge pull request #31 from open-power/bofferdn-fix-double-delete
Browse files Browse the repository at this point in the history
Fix double delete bug when using OpenSSL v1.1 or higher
  • Loading branch information
mtvaught-ibm authored Apr 10, 2019
2 parents 017e481 + f2b2837 commit 8349ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions print-container.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,15 +454,15 @@ static bool verify_signature(const char *moniker, const unsigned char *dgst,
die(EX_SOFTWARE, "%s", "Cannot ECDSA_do_verify");
}

BN_free(r_bn);
BN_free(s_bn);
BN_free(key_bn);

EC_KEY_free(ec_key);

#if OPENSSL_VERSION_NUMBER >= 0x10100000L
ECDSA_SIG_free(ecdsa_sig);
#else
BN_free(r_bn);
BN_free(s_bn);
free(ecdsa_sig);
#endif
return status;
Expand Down

0 comments on commit 8349ff9

Please sign in to comment.