aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/ex_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/ex_data.c')
-rw-r--r--openssl/crypto/ex_data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/crypto/ex_data.c b/openssl/crypto/ex_data.c
index 5a3546a2d..f96a51781 100644
--- a/openssl/crypto/ex_data.c
+++ b/openssl/crypto/ex_data.c
@@ -500,6 +500,8 @@ static void int_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad)
EX_CLASS_ITEM *item;
void *ptr;
CRYPTO_EX_DATA_FUNCS **storage = NULL;
+ if (ex_data == NULL)
+ return;
if ((item = def_get_class(class_index)) == NULL)
return;
CRYPTO_r_lock(CRYPTO_LOCK_EX_DATA);