summaryrefslogtreecommitdiff
path: root/crypto/rsa/rsa_eay.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rsa/rsa_eay.c')
-rw-r--r--crypto/rsa/rsa_eay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_eay.c b/crypto/rsa/rsa_eay.c
index b4050506c..ec143e873 100644
--- a/crypto/rsa/rsa_eay.c
+++ b/crypto/rsa/rsa_eay.c
@@ -474,7 +474,8 @@ RSA *rsa;
err:
BN_clear_free(&m1);
BN_clear_free(&r1);
- BN_CTX_free(ctx);
+ if(ctx)
+ BN_CTX_free(ctx);
return(ret);
}