artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46b061f
)
Change OPENSSL_malloc to calloc()
author
job
<job@openbsd.org>
Thu, 2 Sep 2021 21:37:40 +0000
(21:37 +0000)
committer
job
<job@openbsd.org>
Thu, 2 Sep 2021 21:37:40 +0000
(21:37 +0000)
OK tb@
lib/libcrypto/x509/x509_asid.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/x509/x509_asid.c
b/lib/libcrypto/x509/x509_asid.c
index
0c35efb
..
511002a
100644
(file)
--- a/
lib/libcrypto/x509/x509_asid.c
+++ b/
lib/libcrypto/x509/x509_asid.c
@@
-13,6
+13,7
@@
#include <assert.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <openssl/asn1.h>
@@
-619,7
+620,7
@@
static int ASIdentifierChoice_canonize(ASIdentifierChoice *choice)
ASRange *r;
switch (a->type) {
case ASIdOrRange_id:
- if ((r =
OPENSSL_malloc(
sizeof(*r))) == NULL) {
+ if ((r =
calloc(1,
sizeof(*r))) == NULL) {
X509V3error(ERR_R_MALLOC_FAILURE);
goto done;
}