diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-02-14 18:44:30 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-02-22 12:13:37 -0500 |
commit | a2d0baa2d931feae7f820d4594528894fd4a46cb (patch) | |
tree | e576be98f17420e99d670380470be080441c6a31 /crypto/bn | |
parent | cbb259caaf2cabf9bedc35fd41ba84f048a3de0f (diff) | |
download | openssl-a2d0baa2d931feae7f820d4594528894fd4a46cb.tar.gz |
GH678: Add a few more zalloc
Remove some duplicated NULL/zero init.
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn_recp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_recp.c b/crypto/bn/bn_recp.c index 7824a6da03..ef15c8f170 100644 --- a/crypto/bn/bn_recp.c +++ b/crypto/bn/bn_recp.c @@ -70,7 +70,7 @@ BN_RECP_CTX *BN_RECP_CTX_new(void) { BN_RECP_CTX *ret; - if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL) + if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) return (NULL); BN_RECP_CTX_init(ret); |