summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/bn_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c
index ffb5ee7c2e..c480ae8b9d 100644
--- a/src/lib/libcrypto/bn/bn_lib.c
+++ b/src/lib/libcrypto/bn/bn_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_lib.c,v 1.39 2018/02/20 17:13:14 jsing Exp $ */ 1/* $OpenBSD: bn_lib.c,v 1.40 2018/05/12 17:31:41 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -529,7 +529,7 @@ BN_clear(BIGNUM *a)
529{ 529{
530 bn_check_top(a); 530 bn_check_top(a);
531 if (a->d != NULL) 531 if (a->d != NULL)
532 memset(a->d, 0, a->dmax * sizeof(a->d[0])); 532 explicit_bzero(a->d, a->dmax * sizeof(a->d[0]));
533 a->top = 0; 533 a->top = 0;
534 a->neg = 0; 534 a->neg = 0;
535} 535}