diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2017-04-28 22:46:41 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2017-04-28 22:46:41 +0000 |
commit | cea355369008765f300d4fa3ecd352a9f1351ee5 (patch) | |
tree | 7ce03052bd11c3281cde956888cd6bf6382cdb5a /lib/libcrypto/rsa/rsa_eay.c | |
parent | 86b3412dff5764e5d16dd6ea7f99c950d171a4e0 (diff) |
revert previous accidental commit
Diffstat (limited to 'lib/libcrypto/rsa/rsa_eay.c')
-rw-r--r-- | lib/libcrypto/rsa/rsa_eay.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/lib/libcrypto/rsa/rsa_eay.c b/lib/libcrypto/rsa/rsa_eay.c index 128269a81a1..f9f620ae230 100644 --- a/lib/libcrypto/rsa/rsa_eay.c +++ b/lib/libcrypto/rsa/rsa_eay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_eay.c,v 1.47 2017/04/28 22:38:51 beck Exp $ */ +/* $OpenBSD: rsa_eay.c,v 1.48 2017/04/28 22:46:40 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -244,8 +244,10 @@ err: BN_CTX_end(ctx); BN_CTX_free(ctx); } - freezero(buf, num); - + if (buf != NULL) { + explicit_bzero(buf, num); + free(buf); + } return r; } @@ -466,8 +468,10 @@ err: BN_CTX_end(ctx); BN_CTX_free(ctx); } - freezero(buf, num); - + if (buf != NULL) { + explicit_bzero(buf, num); + free(buf); + } return r; } @@ -593,8 +597,10 @@ err: BN_CTX_end(ctx); BN_CTX_free(ctx); } - freezero(buf, num); - + if (buf != NULL) { + explicit_bzero(buf, num); + free(buf); + } return r; } @@ -694,8 +700,10 @@ err: BN_CTX_end(ctx); BN_CTX_free(ctx); } - freezero(buf, num); - + if (buf != NULL) { + explicit_bzero(buf, num); + free(buf); + } return r; } |