X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fec%2Fec_key.c;h=08aaac5d8a6f5ce8ed4971484a05b3f0deb851f3;hb=c855c9c05ad5e5d3cbc7bb282b483c698e90f8ec;hp=ec10b7e4a212baf3e36d97d248fb15dfe64aa3bd;hpb=9cc570d4c419e2ca97e2173dc14c484195502dd4;p=oweals%2Fopenssl.git diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index ec10b7e4a2..08aaac5d8a 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -10,7 +10,7 @@ #include "internal/cryptlib.h" #include -#include "ec_lcl.h" +#include "ec_local.h" #include "internal/refcount.h" #include #include @@ -51,7 +51,7 @@ void EC_KEY_free(EC_KEY *r) return; REF_ASSERT_ISNT(i < 0); - if (r->meth->finish != NULL) + if (r->meth != NULL && r->meth->finish != NULL) r->meth->finish(r); #ifndef OPENSSL_NO_ENGINE