Check for null sig in wolfSSL_X509_CRL_get_signature

pull/7659/head
Eric Blankenhorn 2024-06-18 14:47:01 -05:00
parent 95cd9c81c8
commit 5efa82a239
1 changed files with 2 additions and 1 deletions

View File

@ -8236,7 +8236,8 @@ int wolfSSL_X509_CRL_get_signature(WOLFSSL_X509_CRL* crl,
{ {
WOLFSSL_ENTER("wolfSSL_X509_CRL_get_signature"); 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; return BAD_FUNC_ARG;
if (buf != NULL) if (buf != NULL)