Skip to content

Commit e537049

Browse files
committed
Avoid crash on OpenSSL 3.0.x
1 parent 0c890f5 commit e537049

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

native/src/sslutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ int SSL_ec_GetParamFromFile(const char *file)
208208
return NID_undef;
209209
evp = PEM_read_bio_Parameters_ex(bio, NULL, NULL, NULL);
210210
BIO_free(bio);
211-
if (!EVP_PKEY_is_a(evp, "EC")) {
211+
if (evp && !EVP_PKEY_is_a(evp, "EC")) {
212212
EVP_PKEY_free(evp);
213213
return NID_undef;
214214
}

0 commit comments

Comments
 (0)