summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-05-29 16:35:46 +0000
committertedu <tedu@openbsd.org>2014-05-29 16:35:46 +0000
commite3a3b5cab6487a54f7100194bc0c015ee439038b (patch)
treec8277895eff509c256999abb67cd2db50cc17799 /lib/libssl/src
parentMake it substantially easier to identify protocol version requirements (diff)
downloadwireguard-openbsd-e3a3b5cab6487a54f7100194bc0c015ee439038b.tar.xz
wireguard-openbsd-e3a3b5cab6487a54f7100194bc0c015ee439038b.zip
use calloc, from Benjamin Baier
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/store/str_lib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libssl/src/crypto/store/str_lib.c b/lib/libssl/src/crypto/store/str_lib.c
index f9beab2952b..c50620308a5 100644
--- a/lib/libssl/src/crypto/store/str_lib.c
+++ b/lib/libssl/src/crypto/store/str_lib.c
@@ -1174,11 +1174,7 @@ STORE_delete_arbitrary(STORE *s, OPENSSL_ITEM attributes[],
STORE_OBJECT *
STORE_OBJECT_new(void)
{
- STORE_OBJECT *object = malloc(sizeof(STORE_OBJECT));
-
- if (object)
- memset(object, 0, sizeof(STORE_OBJECT));
- return object;
+ return calloc(1, sizeof(STORE_OBJECT));
}
void