projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for the presence of _WIN32 rather than its value.
[oweals/openssl.git]
/
crypto
/
asn1
/
tasn_scn.c
diff --git
a/crypto/asn1/tasn_scn.c
b/crypto/asn1/tasn_scn.c
index 1bdd2dfec7e35226b48219d37ba7d659689f0432..e1df2cfcae042d740909205040e83c0c80707d5c 100644
(file)
--- a/
crypto/asn1/tasn_scn.c
+++ b/
crypto/asn1/tasn_scn.c
@@
-24,8
+24,8
@@
ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx))
{
ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx))
{
- ASN1_SCTX *ret;
- ret = OPENSSL_malloc(sizeof(*ret));
+ ASN1_SCTX *ret
= OPENSSL_zalloc(sizeof(*ret))
;
+
if (ret == NULL) {
ASN1err(ASN1_F_ASN1_SCTX_NEW, ERR_R_MALLOC_FAILURE);
return NULL;
if (ret == NULL) {
ASN1err(ASN1_F_ASN1_SCTX_NEW, ERR_R_MALLOC_FAILURE);
return NULL;