Check for null sig in wolfSSL_X509_CRL_get_signature

This commit is contained in:
Eric Blankenhorn
2024-06-18 14:47:01 -05:00
parent 95cd9c81c8
commit 5efa82a239

View File

@ -8236,7 +8236,8 @@ int wolfSSL_X509_CRL_get_signature(WOLFSSL_X509_CRL* crl,
{
WOLFSSL_ENTER("wolfSSL_X509_CRL_get_signature");
if (crl == NULL || crl->crlList == NULL || bufSz == NULL)
if (crl == NULL || crl->crlList == NULL ||
crl->crlList->signature == NULL || bufSz == NULL)
return BAD_FUNC_ARG;
if (buf != NULL)