diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2017-04-28 22:38:52 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2017-04-28 22:38:52 +0000 |
commit | 86b3412dff5764e5d16dd6ea7f99c950d171a4e0 (patch) | |
tree | 84f3049cad681852a553a026ea007a018c46bdb2 /lib/libcrypto/malloc-wrapper.c | |
parent | 0efd2df514b59e904db74b5c86d95b4de261fda2 (diff) |
*** empty log message ***
Diffstat (limited to 'lib/libcrypto/malloc-wrapper.c')
-rw-r--r-- | lib/libcrypto/malloc-wrapper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/malloc-wrapper.c b/lib/libcrypto/malloc-wrapper.c index 68af8182309..d69b0251736 100644 --- a/lib/libcrypto/malloc-wrapper.c +++ b/lib/libcrypto/malloc-wrapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc-wrapper.c,v 1.3 2014/04/20 14:32:19 jsing Exp $ */ +/* $OpenBSD: malloc-wrapper.c,v 1.4 2017/04/28 22:38:51 beck Exp $ */ /* * Copyright (c) 2014 Bob Beck * @@ -165,8 +165,7 @@ CRYPTO_realloc_clean(void *ptr, int old_len, int num, const char *file, ret = malloc(num); if (ret && ptr && old_len > 0) { memcpy(ret, ptr, old_len); - explicit_bzero(ptr, old_len); - free(ptr); + freezero(ptr, old_len); } return ret; } |