Remove redundant NULL check

This commit is contained in:
Colton Willey
2024-12-11 12:25:35 -08:00
parent 00386c76bf
commit 2039d6371f

View File

@ -4174,10 +4174,7 @@ static int wolfSSL_CTX_use_certificate_ex(WOLFSSL_CTX* ctx,
CERT_TYPE, NULL, NULL, 0, GET_VERIFY_SETTING_CTX(ctx));
exit:
if (certData != NULL) {
XFREE(certData, ctx->heap, DYNAMIC_TYPE_CERT);
}
XFREE(certData, ctx->heap, DYNAMIC_TYPE_CERT);
return ret;
}