提交 a33842ef 编写于 作者: T Tomas Mraz 提交者: Todd Short

Coverity 1528492: Fix possible memory leak if t == NULL

上级 f9a4e2b6
......@@ -569,7 +569,7 @@ int ASN1_TIME_normalize(ASN1_TIME *t)
{
struct tm tm;
if (!ASN1_TIME_to_tm(t, &tm))
if (t == NULL || !ASN1_TIME_to_tm(t, &tm))
return 0;
return ossl_asn1_time_from_tm(t, &tm, V_ASN1_UNDEF) != NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册