diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-09-27 23:36:37 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-11-07 15:32:29 -0500 |
commit | 7cb1ecec59d7c8d6628fb9bfd435306f7e06fd33 (patch) | |
tree | 6a82fa4ac1420bd52bf8a66ee7d945d423955ae0 /crypto | |
parent | 27ed73a98f88c98be996a6ffe7bda1b84bfc8be7 (diff) |
Allow null in X509_CRL_METHOD_free
and fix documentation.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1634)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/x_crl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x_crl.c b/crypto/x509/x_crl.c index f94d04c37d..a5871ca6e5 100644 --- a/crypto/x509/x_crl.c +++ b/crypto/x509/x_crl.c @@ -441,7 +441,7 @@ X509_CRL_METHOD *X509_CRL_METHOD_new(int (*crl_init) (X509_CRL *crl), void X509_CRL_METHOD_free(X509_CRL_METHOD *m) { - if (!(m->flags & X509_CRL_METHOD_DYNAMIC)) + if (m == NULL || !(m->flags & X509_CRL_METHOD_DYNAMIC)) return; OPENSSL_free(m); } |