add null check to CRL_Entry_free()

This commit is contained in:
Ruby Martin
2025-08-05 15:30:56 -06:00
parent 948f90251a
commit 35ea769c9f

View File

@@ -218,6 +218,10 @@ static void CRL_Entry_free(CRL_Entry* crle, void* heap)
RevokedCert* next;
WOLFSSL_ENTER("FreeCRL_Entry");
if (crle == NULL) {
WOLFSSL_MSG("CRL Entry is null");
return;
}
while (tmp != NULL) {
next = tmp->next;