diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/asn1/x_crl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/x_crl.c b/src/lib/libcrypto/asn1/x_crl.c index bfc01a2284..8cea9e0b7b 100644 --- a/src/lib/libcrypto/asn1/x_crl.c +++ b/src/lib/libcrypto/asn1/x_crl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_crl.c,v 1.35 2021/11/01 20:53:08 tb Exp $ */ | 1 | /* $OpenBSD: x_crl.c,v 1.36 2021/12/03 17:07:53 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -660,14 +660,15 @@ X509_CRL_METHOD_new(int (*crl_init)(X509_CRL *crl), | |||
| 660 | { | 660 | { |
| 661 | X509_CRL_METHOD *m; | 661 | X509_CRL_METHOD *m; |
| 662 | 662 | ||
| 663 | m = malloc(sizeof(X509_CRL_METHOD)); | 663 | if ((m = calloc(1, sizeof(X509_CRL_METHOD))) == NULL) |
| 664 | if (!m) | ||
| 665 | return NULL; | 664 | return NULL; |
| 665 | |||
| 666 | m->crl_init = crl_init; | 666 | m->crl_init = crl_init; |
| 667 | m->crl_free = crl_free; | 667 | m->crl_free = crl_free; |
| 668 | m->crl_lookup = crl_lookup; | 668 | m->crl_lookup = crl_lookup; |
| 669 | m->crl_verify = crl_verify; | 669 | m->crl_verify = crl_verify; |
| 670 | m->flags = X509_CRL_METHOD_DYNAMIC; | 670 | m->flags = X509_CRL_METHOD_DYNAMIC; |
| 671 | |||
| 671 | return m; | 672 | return m; |
| 672 | } | 673 | } |
| 673 | 674 | ||
