summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_ctx.c')
-rw-r--r--src/lib/libcrypto/bn/bn_ctx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_ctx.c b/src/lib/libcrypto/bn/bn_ctx.c
index 1237ac1365..0d64ccab93 100644
--- a/src/lib/libcrypto/bn/bn_ctx.c
+++ b/src/lib/libcrypto/bn/bn_ctx.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_ctx.c,v 1.15 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: bn_ctx.c,v 1.16 2019/08/20 10:59:09 schwarze Exp $ */
2/* Written by Ulf Moeller for the OpenSSL project. */ 2/* Written by Ulf Moeller for the OpenSSL project. */
3/* ==================================================================== 3/* ====================================================================
4 * Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved. 4 * Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved.
@@ -283,6 +283,9 @@ BN_CTX_start(BN_CTX *ctx)
283void 283void
284BN_CTX_end(BN_CTX *ctx) 284BN_CTX_end(BN_CTX *ctx)
285{ 285{
286 if (ctx == NULL)
287 return;
288
286 CTXDBG_ENTRY("BN_CTX_end", ctx); 289 CTXDBG_ENTRY("BN_CTX_end", ctx);
287 290
288 if (ctx->err_stack) 291 if (ctx->err_stack)