Skip to content

Commit

Permalink
Update evp.go
Browse files Browse the repository at this point in the history
Co-authored-by: Davis Goodin <dagood@users.noreply.github.com>
  • Loading branch information
qmuntal and dagood authored Nov 28, 2024
1 parent 6744ee3 commit 4a82bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evp.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func newEvpFromParams(id C.int, selection C.int, params C.GO_OSSL_PARAM_PTR) (C.
}
var pkey C.GO_EVP_PKEY_PTR
if C.go_openssl_EVP_PKEY_fromdata(ctx, &pkey, selection, params) != 1 {
if vMinor < 2 {
if vMajor == 3 && vMinor <= 2 {
// OpenSSL 3.0.1 and 3.0.2 have a bug where EVP_PKEY_fromdata
// does not free the internally allocated EVP_PKEY on error.
// See https://github.com/openssl/openssl/issues/17407.
Expand Down

0 comments on commit 4a82bb4

Please sign in to comment.