Commit 7cb1ecec authored by FdaSilvaYY's avatar FdaSilvaYY Committed by Rich Salz
Browse files

Allow null in X509_CRL_METHOD_free



and fix documentation.

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1634)
parent 27ed73a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+0 −2
Original line number Diff line number Diff line
@@ -207,8 +207,6 @@ X509_CINF_free,
X509_CINF_new,
X509_CRL_INFO_free,
X509_CRL_INFO_new,
X509_CRL_METHOD_free,
X509_CRL_METHOD_new,
X509_CRL_dup,
X509_CRL_free,
X509_CRL_new,