]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/bn/bn_ctx.c
Make BIGNUM rand functions available within the FIPS module
[thirdparty/openssl.git] / crypto / bn / bn_ctx.c
index 476211411a0c1dd56aea35eec235baa9ebdbb52f..cc3c3034a4350a220bae1067f82d150c95bea236 100644 (file)
@@ -247,6 +247,8 @@ BIGNUM *BN_CTX_get(BN_CTX *ctx)
 
 OPENSSL_CTX *bn_get_lib_ctx(BN_CTX *ctx)
 {
+    if (ctx == NULL)
+        return NULL;
     return ctx->libctx;
 }