artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
141b108
)
def_create(): switch from malloc() to calloc()
author
tb
<tb@openbsd.org>
Wed, 28 Aug 2024 15:48:33 +0000
(15:48 +0000)
committer
tb
<tb@openbsd.org>
Wed, 28 Aug 2024 15:48:33 +0000
(15:48 +0000)
ok jsing
lib/libcrypto/conf/conf_def.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/conf/conf_def.c
b/lib/libcrypto/conf/conf_def.c
index
ef762b8
..
07f6ece
100644
(file)
--- a/
lib/libcrypto/conf/conf_def.c
+++ b/
lib/libcrypto/conf/conf_def.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: conf_def.c,v 1.3
6 2024/08/24 12:08:49
tb Exp $ */
+/* $OpenBSD: conf_def.c,v 1.3
7 2024/08/28 15:48:33
tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@
-85,7
+85,7
@@
def_create(CONF_METHOD *meth)
{
CONF *ret;
- ret =
malloc(
sizeof(CONF) + sizeof(unsigned short *));
+ ret =
calloc(1,
sizeof(CONF) + sizeof(unsigned short *));
if (ret)
if (meth->init(ret) == 0) {
free(ret);